/* Book-a-call section: intro, bracketed booking card, dither mountains.
   Layout follows a two-panel scheduler (event info left, calendar/times/form
   right). Markup lives in the page, behaviour in scripts/booking.js. */

.book-call {
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding-top: clamp(78px, 9vw, 130px);
  padding-bottom: 0;
  text-align: center;
}

.book-call__intro {
  display: grid;
  justify-items: center;
}

.book-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 var(--space-eyebrow-heading);
  padding: 0.35rem 0.8rem 0.25rem;
  border: 1px solid var(--line);
  background: rgba(6, 19, 19, 0.6);
  color: var(--orange-2);
  font-family: var(--font-accent);
  font-size: 1.05rem;
  letter-spacing: 0.24em;
  line-height: 1;
}

.book-tag::before {
  content: "";
  width: 9px;
  height: 9px;
  margin-top: -2px;
  background: var(--orange);
}

.book-call .display-small {
  margin: 0;
}

.book-call .lede {
  margin: var(--space-heading-copy) auto 0;
}

/* Orange corner brackets, used on the CTA and the booking card. */
.bracketed {
  position: relative;
}

.bracket {
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: var(--orange);
  border-style: solid;
  border-width: 0;
  pointer-events: none;
}

.bracket--tl { top: -7px; left: -7px; border-top-width: 1.5px; border-left-width: 1.5px; }
.bracket--tr { top: -7px; right: -7px; border-top-width: 1.5px; border-right-width: 1.5px; }
.bracket--bl { bottom: -7px; left: -7px; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.bracket--br { bottom: -7px; right: -7px; border-bottom-width: 1.5px; border-right-width: 1.5px; }

.book-call__cta {
  display: inline-block;
  margin-top: var(--space-copy-action);
}

.book-call__cta .bracket {
  transition: transform 220ms var(--ease-out);
}

.book-call__cta:hover .bracket--tl { transform: translate(-3px, -3px); }
.book-call__cta:hover .bracket--tr { transform: translate(3px, -3px); }
.book-call__cta:hover .bracket--bl { transform: translate(-3px, 3px); }
.book-call__cta:hover .bracket--br { transform: translate(3px, 3px); }

/* ---------- Booking card ---------- */

.booker {
  display: grid;
  grid-template-columns: minmax(240px, 0.38fr) 1fr;
  min-height: 620px;
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
  border: 1px solid var(--line);
  background: rgba(4, 14, 15, 0.86);
  backdrop-filter: blur(6px);
  text-align: left;
  scroll-margin-top: 110px;
}

.booker .bracket {
  width: 16px;
  height: 16px;
  border-color: var(--muted);
}

.booker__info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.5rem, 2.6vw, 2.2rem);
  border-right: 1px solid var(--line);
}

.booker__host {
  display: grid;
  gap: 0.55rem;
}

.booker__avatar {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  object-fit: cover;
}

.booker__host-name {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.booker__title {
  margin: 0;
  color: var(--yellow);
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 2.6vw, 2.35rem);
  font-weight: 400;
  line-height: 1.02;
  text-transform: uppercase;
}

.booker__title span {
  color: var(--ink);
}

.booker__desc {
  display: grid;
  gap: 0.9rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.booker__desc p {
  margin: 0;
}

.booker__meta {
  display: grid;
  gap: 0.85rem;
  margin: 0.4rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
}

.booker__meta li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.booker__meta svg {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin-top: 0.15rem;
  color: var(--orange-2);
}

.booker__when[hidden] {
  display: none;
}

.booker__when strong {
  display: block;
  font-weight: 600;
}

.booker__tz {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.booker__tz select {
  appearance: none;
  max-width: 190px;
  padding: 0 1.3rem 0 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-overflow: ellipsis;
  cursor: pointer;
}

.booker__tz select option {
  background: var(--bg-2);
}

.booker__tz::after {
  content: "";
  position: absolute;
  right: 3px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.booker__tz select:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.booker__main {
  position: relative;
  scroll-margin-top: 90px;
  min-width: 0;
  padding: clamp(1.25rem, 2vw, 1.6rem) clamp(1.1rem, 2vw, 1.6rem);
}

.booker__step[hidden] {
  display: none;
}

.booker__step {
  animation: booker-in 260ms var(--ease-out);
}

@keyframes booker-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .booker__step { animation: none; }
}

/* Month view */

.cal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}

.cal__month {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-accent);
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1;
}

.cal__nav {
  display: flex;
}

.cal__nav button,
.booker__back {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background 180ms var(--ease-out), color 180ms var(--ease-out);
}

.cal__nav button + button {
  border-left: 0;
}

.cal__nav button:hover:not(:disabled),
.booker__back:hover {
  background: var(--panel-strong);
}

.cal__nav button:disabled {
  color: rgba(246, 240, 223, 0.3);
  cursor: default;
}

.cal__nav svg,
.booker__back svg {
  width: 16px;
  height: 16px;
}

.cal__dows,
.cal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.cal__dows {
  margin-bottom: 0.9rem;
  color: var(--muted);
  font-family: var(--font-accent);
  font-size: 1rem;
  letter-spacing: 0.16em;
  text-align: center;
}

.cal__grid {
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.cal__day {
  position: relative;
  display: grid;
  place-items: center;
  height: 70px;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: rgba(246, 240, 223, 0.42);
  font: inherit;
  font-size: 1rem;
}

button.cal__day {
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
  transition: background 160ms var(--ease-out), color 160ms var(--ease-out);
}

button.cal__day:hover {
  background: var(--panel-strong);
  color: var(--yellow);
}

button.cal__day:focus-visible {
  z-index: 1;
  outline: 2px solid var(--orange);
  outline-offset: -2px;
}

.cal__day.is-selected,
.cal__day.is-selected:hover {
  background: var(--orange);
  color: var(--dark-pill);
}

.cal__day.is-today::after {
  content: "";
  position: absolute;
  bottom: 18px;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  transform: translateX(-50%);
}

.cal__day-month {
  position: absolute;
  top: 6px;
  left: 7px;
  color: var(--orange-2);
  font-family: var(--font-accent);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.12em;
}

.cal__status {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.cal__status a {
  color: var(--orange-2);
}

/* Time view */

.times__head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.1rem;
}

.times__title {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-accent);
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1;
}

.times__sub {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.times__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  max-height: 492px;
  padding-right: 0.4rem;
  overflow-y: auto;
  scrollbar-color: var(--line) transparent;
  scrollbar-width: thin;
}

.times__slot {
  min-height: 48px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  transition: border-color 160ms var(--ease-out), background 160ms var(--ease-out), color 160ms var(--ease-out);
}

.times__slot:hover {
  border-color: var(--orange);
  background: rgba(255, 90, 61, 0.1);
  color: var(--yellow);
}

.times__slot:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

/* Details form */

.book-form {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.book-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem 1rem;
}

.book-field {
  display: grid;
  gap: 0.5rem;
  min-width: 0;
}

.book-field--wide {
  grid-column: 1 / -1;
}

.book-label {
  color: var(--muted);
  font-family: var(--font-accent);
  font-size: 0.98rem;
  letter-spacing: 0.14em;
  line-height: 1;
}

.book-label b {
  color: var(--orange-2);
  font-weight: 400;
}

.book-field input[type="text"],
.book-field input[type="email"],
.book-field input[type="url"],
.book-field input[type="tel"] {
  width: 100%;
  min-height: 48px;
  padding: 0 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(6, 19, 19, 0.9);
  color: var(--ink);
  font: inherit;
  font-size: 0.98rem;
}

.book-field input::placeholder {
  color: rgba(246, 240, 223, 0.45);
}

.book-field input:focus {
  border-color: var(--orange);
  outline: none;
  box-shadow: 0 0 0 1px var(--orange);
}

/* Phone country picker (intl-tel-input), themed to the form. The dropdown and
   the mobile full-screen popup both read these variables. */
.book-form .iti,
.iti--container {
  --iti-border-color: var(--line);
  --iti-country-selector-bg: #0b1717;
  --iti-hover-color: rgba(255, 90, 61, 0.16);
  --iti-icon-color: var(--muted);
  --iti-arrow-color: var(--muted);
  color: var(--ink);
}

.book-form .iti {
  display: block;
  width: 100%;
}

.book-form .iti__selected-dial-code {
  color: var(--muted);
}

.book-form .iti__selected-country-primary {
  border-right: 1px solid var(--line);
}

.iti__country-selector {
  border-radius: 0;
  font-family: var(--font-body, inherit);
}

.iti__search-input {
  background: rgba(6, 19, 19, 0.9);
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
}

.iti__search-input:focus {
  outline: 1px solid var(--orange);
  outline-offset: -1px;
}

.iti__country {
  font-size: 0.95rem;
}

.iti__dial-code {
  color: var(--muted);
}

.book-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Budget slider */

.budget__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.3rem 1rem;
  margin: 0.3rem 0 0.8rem;
}

.budget__value {
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 700;
}

.budget__value.is-set {
  color: var(--yellow);
}

.budget__note {
  color: var(--muted);
  font-size: 0.88rem;
}

.budget__control {
  --pct: 0%;
  display: flex;
  align-items: center;
  height: 54px;
  padding: 0 1.1rem;
  border: 1px solid var(--line);
  background: rgba(6, 19, 19, 0.9);
}

.budget__control input[type="range"] {
  width: 100%;
  height: 22px;
  margin: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

.budget__control input[type="range"]:focus,
.budget__control input[type="range"]:focus-visible {
  outline: none;
}

.budget__control:focus-within {
  border-color: var(--orange);
}

.budget__control input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  background:
    linear-gradient(90deg, var(--orange) var(--pct), transparent var(--pct)),
    repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), rgba(246, 240, 223, 0.28) calc(10% - 1px) 10%),
    rgba(246, 240, 223, 0.12);
}

.budget__control input[type="range"]::-moz-range-track {
  height: 4px;
  background:
    linear-gradient(90deg, var(--orange) var(--pct), transparent var(--pct)),
    repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), rgba(246, 240, 223, 0.28) calc(10% - 1px) 10%),
    rgba(246, 240, 223, 0.12);
}

.budget__control input[type="range"]::-webkit-slider-thumb {
  width: 22px;
  height: 22px;
  margin-top: -9px;
  appearance: none;
  border: 2px solid var(--orange);
  border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 0 0 4px rgba(255, 90, 61, 0.16);
  transition: transform 160ms var(--ease-out);
}

.budget__control input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 2px solid var(--orange);
  border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 0 0 4px rgba(255, 90, 61, 0.16);
}

.budget__control input[type="range"]:active::-webkit-slider-thumb {
  transform: scale(1.12);
}

.budget__control input[type="range"]:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 4px rgba(255, 90, 61, 0.45);
}

.budget__scale {
  display: flex;
  justify-content: space-between;
  margin-top: 0.6rem;
  font-size: 0.8rem;
  line-height: 1.3;
}

.budget__scale span {
  display: grid;
  color: var(--muted);
}

.budget__scale span:nth-child(2) { text-align: center; }
.budget__scale span:last-child { text-align: right; }

.budget__scale b {
  color: var(--ink);
  font-weight: 700;
}

/* Turnstile bot check, rendered when the details form first opens. */
.book-turnstile {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}

.book-turnstile:empty {
  display: none;
}

.book-form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

.book-form__error {
  flex: 1 1 220px;
  margin: 0;
  color: var(--orange-2);
  font-size: 0.9rem;
}

.book-form__error:empty {
  display: none;
}

.book-btn {
  min-height: 46px;
  padding: 0 1.3rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 180ms var(--ease-out), color 180ms var(--ease-out), opacity 180ms var(--ease-out);
}

.book-btn:hover {
  background: var(--panel-strong);
}

.book-btn--primary {
  border-color: rgba(255, 255, 255, 0.22);
  background: linear-gradient(180deg, var(--orange-2), var(--orange));
  color: var(--dark-pill);
}

.book-btn--primary:hover {
  background: var(--dark-pill);
  color: var(--ink);
}

.book-btn--primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: linear-gradient(180deg, var(--orange-2), var(--orange));
  color: var(--dark-pill);
}

.book-btn:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

/* Confirmation */

.booked {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 1rem;
  min-height: 540px;
  max-width: 520px;
  margin-inline: auto;
}

.booked__check {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--dark-pill);
}

.booked__check svg {
  width: 26px;
  height: 26px;
}

.booked h3 {
  margin: 0;
  color: var(--yellow);
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.4vw, 3rem);
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
}

.booked p {
  margin: 0;
  color: var(--muted);
}

.booked a {
  color: var(--orange-2);
}

/* Frame rails and dither wave */

:root {
  /* Page frame: just outside the content column. The rails and the wave share it. */
  --frame: min(100% - 12px, calc(var(--max) + 80px));
}

.book-call > .site-shell {
  position: relative;
  z-index: 1;
}

/* The globe from the live homepage CTA, rising behind the intro. Same size,
   fade and mask as .mid-cta .moon-cta-art; the site shell and wave sit above it. */
.book-call__globe {
  position: absolute;
  top: -3%;
  left: 50%;
  z-index: 0;
  width: min(2050px, 176vw);
  max-width: none;
  opacity: 0.5;
  pointer-events: none;
  transform: translate3d(-50%, 0, 0);
  filter: grayscale(0.18) drop-shadow(0 42px 60px rgba(0, 0, 0, 0.38));
  mask-image: linear-gradient(180deg, #000 0%, #000 32%, rgba(0, 0, 0, 0.48) 44%, transparent 56%);
}

@media (max-width: 760px) {
  .book-call__globe {
    top: 4%;
    width: 286vw;
    opacity: 0.42;
  }
}

.book-call__wave {
  position: relative;
  z-index: 1;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.book-call__dither {
  width: var(--frame);
  height: clamp(190px, 21vw, 300px);
  margin-inline: auto;
}

.book-call__dither canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* Spacer under the wave and between every section on the framed page. No rules or
   hatch, just the gap, so the sections keep their rhythm. */
.hatch-band {
  height: clamp(40px, 4.5vw, 60px);
}

/* Framed layout: spacer bands split the page into sections. The audit footer
   normally tucks up under the homepage CTA art; here it starts flush on the
   wave's bottom band instead. */
.framed .audit-footer-home {
  margin-top: 0;
}

/* Framed FAQ: two independent columns of four. Rows are separate panels with a
   small gap, and opening one question never stretches the question beside it. */
.framed .home-faq .site-shell {
  width: var(--frame);
}

.framed .home-faq-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 0 16px;
  max-width: none;
}

.framed .faq-col {
  display: grid;
}

.framed .faq-item {
  position: relative;
  margin: 0;
  border-radius: 0;
  background: rgba(6, 19, 19, 0.72);
}

.framed .faq-item + .faq-item {
  margin-top: 8px;
}

/* Framed homepage: no outlines. Cards, chips, and panels sit on their fill alone. */
.framed .trust-hero,
.framed .trust-mini,
.framed .query-tile,
.framed .chart-card,
.framed .chart-chip,
.framed .service-card,
.framed .card-icon,
.framed .service-card:hover .card-icon,
.framed .how-step,
.framed .testimonial-card,
.framed .testimonial-card__avatar,
.framed .faq-item,
.framed .book-tag,
.framed .booker,
.framed .booker__info,
.framed .booker__avatar {
  border-color: transparent;
}

/* The inset top highlight on these reads as a line too. */
.framed .query-tile,
.framed .service-card {
  box-shadow: none;
}

.framed .bracket {
  display: none;
}

.framed .faq-item summary {
  display: flex;
  align-items: center;
  min-height: 76px;
  padding: 18px 60px 18px 24px;
  font-weight: 500;
  transition: background 180ms var(--ease-out), color 180ms var(--ease-out);
}

.framed .faq-item summary:hover {
  background: var(--panel-strong);
  color: var(--yellow);
}

.framed .faq-item summary::after {
  right: 24px;
}

.framed .faq-item[open] summary {
  color: var(--yellow);
}

.framed .faq-item__body {
  padding: 0 24px 22px;
}

@media (max-width: 760px) {
  .framed .home-faq-list {
    grid-template-columns: 1fr;
  }

  .framed .faq-col + .faq-col {
    margin-top: 8px;
  }

  .framed .faq-item summary {
    min-height: 64px;
    padding: 16px 52px 16px 18px;
  }

  .framed .faq-item summary::after {
    right: 18px;
  }

  .framed .faq-item__body {
    padding: 0 18px 18px;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .booker {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .booker__info {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .booker__desc p + p {
    display: none;
  }

  .booked {
    min-height: 360px;
  }
}

@media (max-width: 560px) {
  .cal__day {
    height: 48px;
    font-size: 0.92rem;
  }

  .cal__day.is-today::after {
    bottom: 7px;
  }

  .cal__day-month {
    top: 3px;
    left: 4px;
    font-size: 0.66rem;
  }

  .cal__dows {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
  }

  .times__list {
    max-height: 420px;
  }

  .book-form__grid {
    grid-template-columns: 1fr;
  }

  .book-form__foot .book-btn {
    flex: 1 1 auto;
  }
}
