/* BetaWave Booking (site/booking/): the showcase page for the barbershop and salon booking app.
   Linked from that page only, after site.css, whose colour variables and classes it reuses.
   Square interface. Radius and shadow only on the phone frames, which are sample objects. Static: no animation. */

:root { --bk-gap: 88px; --bk-lift: 0 1px 2px rgb(13 15 18 / 0.12), 0 14px 32px rgb(13 15 18 / 0.14); }
main { overflow-wrap: break-word; }
.bk-steps { margin: 0; padding: 0; list-style: none; }

/* Opening: words left, the first phone right */
.bk-hero { padding-top: 24px; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px 72px; align-items: center; padding-bottom: 8px; }
.bk-h1 { padding-top: 28px; font-size: clamp(38px, 4.4vw, 60px); text-wrap: balance; }
.bk-lead { max-width: 30em; margin-top: 4px; font-size: 21px; line-height: 1.38; text-wrap: pretty; }
.bk-act { display: grid; gap: 10px; justify-items: start; margin-top: 28px; }
.bk-small { font-size: 16px; line-height: 1.45; color: var(--ink-2); }
.bk-hero .bk-shot { justify-self: end; }

/* Phone frame: a sample object, so it takes the radius and shadow */
.bk-shot { width: min(100%, 300px); }
.bk-phone { display: block; border: 8px solid var(--ink); border-radius: 34px; background: var(--ink); box-shadow: var(--bk-lift); overflow: hidden; }
.bk-phone img { display: block; width: 100%; height: auto; aspect-ratio: 780 / 1688; border-radius: 26px; }
.bk-shot figcaption { margin-top: 14px; font-size: 16px; line-height: 1.4; color: var(--ink-2); text-wrap: pretty; }
.bk-shot figcaption b { display: block; color: var(--ink); font-size: 18px; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
.bk-tag { display: inline-block; padding: 1px 8px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 500; line-height: 1.5; }

/* Sections */
.bk-sec { padding-top: var(--bk-gap); }
.bk-band { margin-top: var(--bk-gap); padding-block: 72px; background: var(--wash); }
.bk-band > .bk-sec { padding-top: 0; }
.bk-h2 { max-width: 20ch; margin-bottom: 20px; font-size: clamp(32px, 3.8vw, 52px); line-height: 1.06; letter-spacing: -0.03em; font-weight: 700; text-wrap: balance; }
.bk-h3 { font-size: 22px; line-height: 1.2; letter-spacing: -0.015em; font-weight: 700; text-wrap: balance; }
.bk-text { max-width: 36em; font-size: 20px; line-height: 1.45; text-wrap: pretty; }
.bk-text + .bk-text { margin-top: 14px; }

/* How it works: four steps, ruled */
.bk-steps { counter-reset: step; border-top: 2px solid var(--ink); }
.bk-steps li { counter-increment: step; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 4px 16px; padding: 22px 0; border-bottom: 1px solid var(--rule-soft); }
.bk-steps li::before { content: counter(step); font-size: 32px; font-weight: 700; line-height: 1; letter-spacing: -0.03em; color: var(--blue); font-variant-numeric: tabular-nums; }
.bk-steps b { display: block; font-size: 22px; line-height: 1.25; letter-spacing: -0.015em; }
.bk-steps span:not(.vh) { display: block; margin-top: 4px; max-width: 34em; color: var(--ink-2); font-size: 18px; line-height: 1.42; }

/* Two sides: customer and barber */
.bk-sides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 64px; }
.bk-sides p { margin-top: 8px; max-width: 30em; color: var(--ink-2); font-size: 19px; line-height: 1.45; text-wrap: pretty; }

/* The rest of the screens */
.bk-screens { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 28px; margin-top: 28px; align-items: start; }
.bk-screens .bk-shot { width: 100%; max-width: 300px; }

/* Sample table */
.bk-sample { margin-top: 20px; }
.bk-sample .policy { max-width: 760px; }
.bk-sample caption { caption-side: bottom; margin-top: 10px; padding: 0; text-align: left; font-size: 16px; line-height: 1.4; color: var(--ink-2); }
.bk-after { max-width: 34em; margin-top: 18px; font-size: 20px; line-height: 1.45; }

/* Problem and "What to know first": long-form split, heading left, content right */
.bk-body > .bk-text { max-width: 36em; }
@media (min-width: 901px) {
  .bk-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 64px; align-items: start; }
  .bk-split .bk-h2 { margin-bottom: 0; }
}

/* Know this and questions */
.bk-know { display: grid; gap: 0; max-width: 46em; border-top: 2px solid var(--ink); }
.bk-know li { padding: 16px 0; border-bottom: 1px solid var(--rule-soft); font-size: 19px; line-height: 1.45; }
.bk-know b { font-weight: 700; }
.bk-faq { display: grid; gap: 28px 64px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bk-faq a, .bk-know a { color: var(--blue); text-underline-offset: 3px; }
.bk-faq p { margin-top: 6px; color: var(--ink-2); font-size: 18px; line-height: 1.45; max-width: 30em; text-wrap: pretty; }

@media (max-width: 1000px) {
  .bk-screens { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bk-hero { grid-template-columns: minmax(0, 1fr) 300px; gap: 24px 40px; }
}
@media (max-width: 760px) {
  :root { --bk-gap: 56px; }
  .bk-hero { grid-template-columns: 1fr; }
  .bk-hero .bk-shot { justify-self: start; width: min(100%, 280px); }
  .bk-lead, .bk-text, .bk-after { font-size: 18px; }
  .bk-sides, .bk-faq { grid-template-columns: 1fr; }
  .bk-band { padding-block: 48px; }
  .bk-steps li { grid-template-columns: 40px minmax(0, 1fr); gap: 4px 12px; }
  .bk-steps li::before { font-size: 26px; }
  .bk-act .go { width: 100%; }
  /* Keep the sample table a real table: three short columns fit a phone */
  .bk-sample .policy { display: table; }
  .bk-sample .policy thead { position: static; display: table-header-group; width: auto; height: auto; overflow: visible; clip-path: none; }
  .bk-sample .policy tbody { display: table-row-group; }
  .bk-sample .policy tr, .bk-sample .policy tr:first-child { display: table-row; padding: 0; border: 0; }
  .bk-sample .policy th, .bk-sample .policy td { display: table-cell; padding: 12px 10px; border: 0; border-top: 1px solid var(--rule-soft); }
  .bk-sample .policy thead th { border-top: 2px solid var(--ink); padding-block: 10px; }
  .bk-sample .policy th:first-child, .bk-sample .policy td:first-child { padding-left: 14px; }
  .bk-sample .policy td { margin: 0; }
  .bk-sample .policy td::before { content: none; }
}
@media (max-width: 520px) {
  .bk-hero .bk-shot { width: 220px; }
  /* The other screens: a sideways rail, edge to edge, so the next phone peeks in */
  .bk-screens { display: flex; gap: 16px; margin-inline: -16px; padding: 4px 16px 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; -webkit-overflow-scrolling: touch; }
  .bk-screens .bk-shot { flex: 0 0 min(68%, 240px); width: auto; max-width: none; scroll-snap-align: start; }
  .bk-screens:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; }
}
