/* Dip Studio dip-site: the Book a Free Call page and its manage page.
   A page with no site header and no footer (David, 2026-09-04): one slim
   top strip, the hero line, the booking card as the set piece, a short
   "what to expect" band, one line of small print. The card is the page's
   dark surface (carries .on-dark so every shared control gets its dark
   variant) and the confirm button is the page's ONE primary. */

/* ---------------------------------------------------------------- shell */
body.page--book { background: var(--paper); }
.bk-top {
  position: relative; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.35rem var(--gutter);
}
.bk-top__mark { display: inline-flex; color: var(--ink); }
.bk-top__mark .dipmark { width: 52px; height: 30px; }
.bk-top__back {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.9rem; font-weight: 500; color: var(--gray-600);
  padding: 0.6rem 0.2rem; min-height: 44px;
  transition: color 0.25s var(--ease-out);
}
.bk-top__back:hover, .bk-top__back:focus-visible { color: var(--ink); }
.bk-top__back svg { width: 14px; height: 14px; }

.bk-hero { padding: clamp(1.5rem, 4vw, 3.5rem) 0 clamp(1.8rem, 3.5vw, 3rem); }
.bk-hero .container { max-width: 1120px; }
.bk-eyebrow {
  font-family: var(--font-display); font-size: var(--fs-label); font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent-ink-on-paper, #2a7a14);
  display: inline-flex; align-items: center; gap: 0.7rem; margin-bottom: 1.1rem;
}
.bk-eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); }
.bk-hero h1 { max-width: 14ch; }
.bk-hero__lede { margin-top: 1.1rem; max-width: 46ch; font-size: var(--fs-lead); color: var(--on-light-muted); }

/* ------------------------------------------------------------- the card */
.bk { padding-bottom: clamp(3.5rem, 7vw, 6rem); }
.bk .container { max-width: 1120px; }
.bk__card {
  position: relative;
  background: var(--dark); color: var(--on-dark);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3.5vw, 2.8rem);
  display: grid; gap: clamp(1.6rem, 3vw, 2.4rem);
  overflow: clip;
}
@media (min-width: 1024px) {
  .bk__card { grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); column-gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
  .bk__foot { grid-column: 1 / -1; }
}
.bk__step {
  font-family: var(--font-display); font-size: var(--fs-label); font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-dark-muted);
  display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.9rem;
}
.bk__step b { color: var(--accent); font-weight: 600; }
.bk__h { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.25rem, 1rem + 0.9vw, 1.7rem); line-height: 1.15; letter-spacing: -0.02em; color: var(--on-dark); margin-bottom: 1.1rem; }

/* fields: the shared .form rules already carry the on-dark variant */
.bk .form { gap: 0.85rem; }
.bk .form label { display: grid; gap: 0.4rem; }
.bk__label { font-size: 0.82rem; font-weight: 500; letter-spacing: 0.02em; color: var(--on-dark-muted); }
.bk .form input, .bk .form textarea, .bk .form select { border-radius: 14px; }
.bk .form textarea { min-height: 96px; }
.bk__hint { font-size: 0.86rem; line-height: 1.5; color: var(--on-dark-muted); margin-top: 0.4rem; }
.bk__hint a { color: var(--on-dark); text-decoration: underline; text-underline-offset: 3px; }
.bk__hint a:hover { color: var(--accent); }

/* calendar */
.bk__cal-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.6rem; }
.bk__month { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; }
.bk__nav {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  color: var(--on-dark); box-shadow: inset 0 0 0 1.5px rgba(244, 243, 239, 0.55);
  transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), opacity 0.25s;
}
.bk__nav svg { width: 14px; height: 14px; }
.bk__nav:hover:not(:disabled), .bk__nav:focus-visible:not(:disabled) { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--paper); }
.bk__nav:disabled { opacity: 0.3; cursor: default; }
.bk__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.bk__dow { text-align: center; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; color: var(--on-dark-muted); padding: 0.3rem 0 0.5rem; }
.bk__day {
  aspect-ratio: 1; width: 100%; min-height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-body); font-size: 0.98rem; font-weight: 500; color: var(--on-dark);
  transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.bk__day:not(:disabled):not(.is-selected) { box-shadow: inset 0 0 0 1.5px rgba(244, 243, 239, 0.28); }
.bk__day:hover:not(:disabled):not(.is-selected), .bk__day:focus-visible:not(:disabled) { background: rgba(244, 243, 239, 0.12); box-shadow: inset 0 0 0 1.5px rgba(244, 243, 239, 0.6); }
.bk__day:disabled { color: rgba(244, 243, 239, 0.28); cursor: default; }
.bk__day.is-today:not(.is-selected)::after { content: ""; position: absolute; }
.bk__day.is-today { position: relative; }
.bk__day.is-today:not(:disabled):not(.is-selected) { box-shadow: inset 0 0 0 1.5px rgba(244, 243, 239, 0.6); }
.bk__day.is-selected { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.bk__day.is-wait { color: rgba(244, 243, 239, 0.3); box-shadow: none; animation: bkWait 1.1s ease-in-out infinite; }
@keyframes bkWait { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .bk__day.is-wait { animation: none; opacity: 0.55; } }
.bk__mock { margin-top: 0.7rem; font-size: 0.8rem; color: var(--on-dark-muted); }

/* times */
.bk__times { margin-top: 1.6rem; }
.bk__chosen { font-size: 0.95rem; color: var(--on-dark-muted); margin-bottom: 0.7rem; min-height: 1.4em; }
.bk__chosen b { color: var(--on-dark); font-weight: 500; }
.bk__slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 0.55rem; min-height: 48px; }
.bk__slot {
  min-height: 48px; padding: 0.55rem 0.8rem; border-radius: var(--radius-pill);
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 500; color: var(--on-dark);
  box-shadow: inset 0 0 0 1.5px rgba(244, 243, 239, 0.4);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem;
  transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.bk__slot small { font-size: 0.72rem; opacity: 0.8; }
.bk__slot:hover:not(.is-selected), .bk__slot:focus-visible { background: rgba(244, 243, 239, 0.12); box-shadow: inset 0 0 0 1.5px rgba(244, 243, 239, 0.75); }
.bk__slot.is-selected { background: var(--accent); color: var(--accent-ink); box-shadow: inset 0 0 0 1.5px var(--accent); font-weight: 600; }
.bk__slots-hint { grid-column: 1 / -1; font-size: 0.95rem; color: var(--on-dark-muted); padding-top: 0.5rem; }
.bk__tz { margin-top: 1rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 0.8rem; font-size: 0.86rem; color: var(--on-dark-muted); }
.bk__tz select { width: auto; max-width: 100%; padding: 0.55rem 2.2rem 0.55rem 0.9rem; font-size: 1rem; border-radius: var(--radius-pill); background-image: none; }
.bk__hours { font-size: 0.86rem; color: var(--on-dark-muted); margin-top: 0.5rem; }

/* the confirm row */
.bk__foot {
  border-top: 1px solid var(--hairline-dark); padding-top: clamp(1.2rem, 2.5vw, 1.8rem);
  display: grid; gap: 1rem;
}
@media (min-width: 700px) { .bk__foot { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } }
.bk__recap { min-width: 0; }
.bk__recap-k { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-muted); font-weight: 600; font-family: var(--font-display); }
.bk__recap-v { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem); letter-spacing: -0.015em; margin-top: 0.25rem; }
.bk__recap-m { font-size: 0.9rem; color: var(--on-dark-muted); margin-top: 0.15rem; }
.bk__confirm { min-width: 220px; justify-content: center; }
.bk__confirm:disabled, .bk__confirm[aria-disabled="true"] { opacity: 0.4; cursor: default; }
.bk__confirm[aria-disabled="true"]:hover { background: var(--accent); color: var(--accent-ink); }
.bk__error { grid-column: 1 / -1; font-size: 0.95rem; color: #ffb4ad; min-height: 0; }
.bk__error:empty { display: none; }
.bk__error a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.bk__status { grid-column: 1 / -1; font-size: 0.9rem; color: var(--on-dark-muted); }
.bk__status:empty { display: none; }
/* ghost = the secondary on dark: a boundary you can actually see (>= 3:1) */
.bk .btn--ghost { background: transparent; color: var(--on-dark); box-shadow: inset 0 0 0 1.5px rgba(244, 243, 239, 0.55); }
.bk .btn--ghost:hover, .bk .btn--ghost:focus-visible { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--paper); }

/* success + manage states replace the whole card body */
.bk__done { grid-column: 1 / -1; text-align: center; padding: clamp(1rem, 3vw, 2.5rem) 0 clamp(0.5rem, 2vw, 1.5rem); }
.bk__seal {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 1.2rem;
  background: var(--accent); color: var(--accent-ink); display: grid; place-items: center;
}
.bk__seal svg { width: 28px; height: 28px; }
.bk__done h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); letter-spacing: -0.02em; line-height: 1.1; }
.bk__done-when { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.1rem, 1rem + 0.6vw, 1.4rem); margin-top: 0.9rem; }
.bk__done-when small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 0.92rem; color: var(--on-dark-muted); margin-top: 0.25rem; }
.bk__done-p { max-width: 46ch; margin: 0.9rem auto 0; color: var(--on-dark-muted); }
.bk__done-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.7rem; margin-top: 1.6rem; }
.bk__done-links { margin-top: 1.1rem; font-size: 0.9rem; color: var(--on-dark-muted); display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.2rem; }
.bk__done-links a { color: var(--on-dark); text-decoration: underline; text-underline-offset: 3px; }
.bk__done-links a:hover { color: var(--accent); }

/* manage page: the summary block sits where the details column would */
.bk__manage { display: grid; gap: 1rem; }
.bk__manage-row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.8rem 0; border-bottom: 1px solid var(--hairline-dark); }
.bk__manage-row:last-child { border-bottom: 0; }
.bk__manage-k { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-dark-muted); font-weight: 600; font-family: var(--font-display); flex: none; padding-top: 0.2rem; }
.bk__manage-v { text-align: right; min-width: 0; overflow-wrap: anywhere; }
.bk__manage-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 0.5rem; }
.bk__cancel { display: grid; gap: 0.8rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--hairline-dark); }
.bk__when-col[hidden] { display: none !important; }

/* --------------------------------------------------------- what to expect */
.bk-info { background: var(--warm-100); padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.bk-info .container { max-width: 1120px; }
.bk-info__head { max-width: 40ch; margin-bottom: clamp(1.8rem, 4vw, 3rem); }
.bk-info__head h2 { color: var(--ink); }
.bk-info__lede { margin-top: 0.9rem; color: var(--on-warm-muted); max-width: 52ch; }
.bk-info__grid { display: grid; gap: 1rem; }
@media (min-width: 700px) { .bk-info__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.bk-card {
  background: var(--paper); border-radius: var(--radius); padding: clamp(1.3rem, 2.6vw, 1.9rem);
  display: grid; gap: 0.6rem; align-content: start;
}
.bk-card__n { font-family: var(--font-display); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.16em; color: var(--accent-ink-on-paper, #2a7a14); }
.bk-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; letter-spacing: -0.015em; line-height: 1.2; }
.bk-card p { color: var(--on-light-muted); font-size: 1rem; line-height: 1.55; }
.bk-info__row { margin-top: clamp(1.5rem, 3.5vw, 2.5rem); display: grid; gap: 1rem; }
@media (min-width: 900px) { .bk-info__row { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
.bk-list { background: var(--paper); border-radius: var(--radius); padding: clamp(1.3rem, 2.6vw, 1.9rem); }
.bk-list h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; letter-spacing: -0.01em; margin-bottom: 0.8rem; }
.bk-list ul { display: grid; gap: 0.55rem; }
.bk-list li { position: relative; padding-left: 1.5rem; color: var(--ink); font-size: 1rem; }
.bk-list li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 0.6rem; height: 2px; background: var(--accent); }
.bk-host { background: var(--paper); border-radius: var(--radius); padding: clamp(1.3rem, 2.6vw, 1.9rem); display: flex; align-items: center; gap: 1.1rem; }
.bk-host picture, .bk-host img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; flex: none; }
.bk-host__name { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; letter-spacing: -0.01em; }
.bk-host__role { color: var(--on-light-muted); font-size: 0.95rem; margin-top: 0.15rem; }

/* ---------------------------------------------------------- small print */
.bk-fine {
  padding: 1.6rem var(--gutter) calc(1.6rem + env(safe-area-inset-bottom, 0px));
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.4rem;
  font-size: 0.85rem; color: var(--gray-600);
}
.bk-fine a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--hairline); }
.bk-fine a:hover { text-decoration-color: var(--ink); }

/* --------------------------------------------------------------- motion */
/* entrances start at .001, never 0, and only once the script has run */
html.bk-ready [data-enter] { opacity: 0.001; transform: translateY(14px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
html.bk-ready [data-enter].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html.bk-ready [data-enter] { opacity: 1; transform: none; transition: none; } }
