/* /book, phone first. Desktop is the 3 column grid from the handoff. */
.bk { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; padding-top: 30px; }
.bk .c1-mq, .bk .cal, .bk .mnav, .bk .selday { display: none; }
.bk .ph-mq { display: none; }

.intro { display: flex; flex-direction: column; gap: 12px; padding: 56px var(--g) 0; }
.intro h1 { font-weight: 500; font-size: 48px; line-height: 1; letter-spacing: -.045em; }
.intro .sub { font-size: 16px; color: var(--fog); }

.c2 .mhead { display: flex; justify-content: space-between; align-items: center; padding: 40px var(--g) 14px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--ash); }
.strip { display: flex; gap: 8px; padding: 0 var(--g); overflow-x: auto; scrollbar-width: none; scroll-padding: 0 var(--g); }
.strip::-webkit-scrollbar { display: none; }
.day { flex: none; width: 56px; height: 72px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--outline); }
.day .dow { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.day .n { font-size: 22px; font-weight: 500; }
.day.on, .cell.on { background: var(--bone); color: var(--night); border-color: var(--bone); }
.day.ghost { border-color: var(--hair); }

.c3 { flex: 1; display: flex; flex-direction: column; }
.times { display: flex; flex-direction: column; margin-top: 28px; border-top: 1px solid var(--hair); }
.slot { display: flex; justify-content: space-between; align-items: center; height: 56px; padding: 0 var(--g); border-bottom: 1px solid var(--hair); font-size: 17px; text-align: left; }
.slot.on { background: var(--bone); color: var(--night); }
.slot.ghost { cursor: default; }
.note { padding: 18px var(--g) 0; font-size: 16px; line-height: 1.4; color: var(--fog); }
.c3 .bar { margin-top: auto; }
.c3 .spacer { flex: 1; min-height: 40px; }

/* Step 2 */
.det { display: flex; flex-direction: column; gap: 12px; padding: 56px var(--g) 0; }
.det h1 { font-weight: 500; font-size: 34px; line-height: 1.05; letter-spacing: -.035em; }
.det .when { display: flex; flex-wrap: wrap; gap: 16px; font-size: 16px; color: var(--fog); }
.det .when a { color: var(--bone); text-decoration: underline; text-underline-offset: 3px; }
.det .local { font-size: 14px; color: var(--fog); }
.fields { display: flex; flex-direction: column; gap: 28px; padding: 48px var(--g) 0; }
.field { display: flex; flex-direction: column; gap: 10px; }
.field > span:first-child { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--ash); }
.field input, .field textarea { font: inherit; color: var(--bone); background: transparent; border: 0; border-bottom: 1px solid var(--outline); border-radius: 0; padding: 0 0 12px; font-size: 18px; outline: none; resize: none; transition: border-color 140ms; -webkit-appearance: none; }
.field input:focus, .field textarea:focus { border-bottom-color: var(--bone); }
.field input::placeholder, .field textarea::placeholder { color: var(--ph); }
.field .err { font-family: var(--sans); font-size: 14px; letter-spacing: 0; color: var(--fog); }
.credit { padding: 28px var(--g) 0; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--ash); line-height: 1.6; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Step 3 */
.done { display: flex; flex-direction: column; gap: 16px; padding: 0 var(--g); }
.done h1 { font-weight: 500; font-size: min(56px, 13.8vw); line-height: 1; letter-spacing: -.045em; }
.done p { font-size: 17px; line-height: 1.4; color: var(--fog); }
.rows { display: flex; flex-direction: column; margin: 40px var(--g) 0; border-top: 1px solid var(--hair); font-size: 16px; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--hair); }
.row > span:first-child { font-family: var(--mono); font-size: 12px; color: var(--ash); }
.row a { text-decoration: underline; text-underline-offset: 3px; }
.outline { margin: 28px var(--g) 0; display: flex; justify-content: space-between; align-items: center; height: 58px; padding: 0 22px; border: 1px solid var(--outline); font-size: 16px; font-weight: 600; }

.bk[data-step="2"] .c1, .bk[data-step="2"] .c2,
.bk[data-step="3"] .c1, .bk[data-step="3"] .c2 { display: none; }
.bk[data-step="3"] { padding-bottom: 34px; }
.bk[data-step="3"] .ph-mq { display: block; margin-top: 72px; }

@media (min-width: 1024px) {
  .bk { display: grid; grid-template-columns: minmax(0, 1fr) 520px 300px; grid-template-rows: auto 1fr; height: 100vh; height: 100svh; min-height: 680px; padding-top: 0; }
  .bk .top { grid-area: 1 / 1; padding: 40px 0 0 56px; }
  .bk .top .step { display: none; }
  .bk .ph-mq, .bk[data-step="3"] .ph-mq { display: none; }
  .bk .c1, .bk[data-step="2"] .c1, .bk[data-step="3"] .c1 { grid-area: 2 / 1; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 0 44px 56px; min-width: 0; }
  .bk[data-step="3"] .intro { visibility: hidden; }
  .intro { gap: 14px; padding: 0 48px 0 0; }
  .intro h1 { font-size: 72px; }
  .intro .sub { font-size: 18px; }
  .bk .c1-mq { display: block; margin-top: 72px; }

  .c2 { grid-column: 2; grid-row: 1 / 3; border-left: 1px solid var(--hair); padding: 40px 48px; }
  .c2 .mhead { padding: 0; }
  .bk .mnav { display: flex; gap: 20px; }
  .mnav button { font-family: var(--mono); font-size: 12px; color: var(--bone); }
  .mnav button:disabled { color: var(--ph); cursor: default; }
  .strip { display: none; }
  .bk .cal { display: block; }
  .dows, .grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
  .dows { margin-top: 40px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--ash); text-align: center; }
  .grid { margin-top: 14px; }
  .cell { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border: 1px solid transparent; color: var(--off); font-size: 17px; font-weight: 500; cursor: default; }
  .cell.open { border-color: var(--outline); color: var(--bone); cursor: pointer; }
  .cell.ghost { border-color: var(--hair); }
  .cell.open.on { background: var(--bone); color: var(--night); border-color: var(--bone); }

  .c3 { grid-column: 3; grid-row: 1 / 3; border-left: 1px solid var(--hair); padding-top: 40px; min-height: 0; }
  .bk .selday { display: block; padding: 0 32px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--ash); min-height: 1.4em; }
  .times { margin-top: 40px; }
  .slot { height: 60px; padding: 0 32px; }
  .note { padding: 18px 32px 0; }
  .c3 .bar { height: 80px; padding: 0 32px; font-size: 16px; }

  .bk[data-step="2"] .c3, .bk[data-step="3"] .c3 { grid-column: 2 / 4; }
  .bk[data-step="2"] .c3 { padding-top: 0; }
  .det { padding: 112px 48px 0; }
  .det h1 { font-size: 48px; }
  .fields { padding: 48px 48px 0; max-width: 640px; }
  .credit { padding: 28px 48px 0; }
  .bk[data-step="2"] .c3 .bar, .bk[data-step="3"] .c3 .bar { padding: 0 48px; font-size: 17px; }
  .bk[data-step="3"] .c3 { padding: 0 0 44px; }
  .done { padding: 0 48px; }
  .done h1 { font-size: 72px; }
  .rows { margin: 40px 48px 0; max-width: 560px; }
  .outline { margin: 28px 48px 0; max-width: 560px; }
}

/* Small laptops and iPad landscape: keep column 1 wide enough for the title. */
@media (min-width: 1024px) and (max-width: 1279px) {
  .bk { grid-template-columns: minmax(0, 1fr) 400px 264px; }
  .intro { padding-right: 24px; }
  .intro h1 { font-size: clamp(52px, 5.2vw, 72px); }
  .intro .sub { font-size: 15px; white-space: nowrap; }
  .c2 { padding: 40px 32px; }
  .slot, .bk .selday { padding-left: 28px; padding-right: 28px; }
  .c3 .bar { padding: 0 28px; }
}
