/* ============================================================================
   Floom — the demo page (floom-book.js runs it)
   ----------------------------------------------------------------------------
   The whole window, split down the middle, with no bar or footer of the
   site's round it:
     ≥1024   the dark half on the left (the logo, the heading, what the call
             covers),
             the White half on the right (four questions, then the scheduler
             in their place, and a foot with the address and the legal links)
     <1024   one column: the heading, then the White half
   The questions are the home form's fields (floom-request.css), one to a
   row; the scheduler is the sheet's card (floom-editorial.css).
   ========================================================================== */
.bk{
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100svh;
  /* where the dark half's logo sits, and how far in both halves' words start.
     The top follows the window's height as well as its width, so a laptop's
     900 and 800px windows hold the whole split without scrolling. */
  --bk-top: round(clamp(48px, min(8.9vw, 11vh), 144px), 8px);
  --bk-in:  round(clamp(48px, 9.7vw, 200px), 8px);
}

/* ── the dark half: the home hero's ramp ─────────────────────────────────
   The home's ground (floom-next.css .nx-hero), its own two tokens — dark
   brown into orange — over the whole left column. The home holds the dark
   to 40% and is solid orange by 76%, under its photograph; here the orange
   builds from 45% to the edge, so every line of white stays at 4.5:1 or
   better (measured at its own height on the ramp). */
.bk{ --bk-ramp: linear-gradient(180deg, var(--ap-ink) 45%, var(--ap-orange) 100%); }
.bk-side{
  grid-column: 1;
  grid-row: 1;
  padding: var(--bk-top) var(--bk-in);
  background: var(--bk-ramp);
  color: #FFFFFF;
}
.bk-logo{
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-display);
  font-size: 20.08px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: #FFFFFF;
}
/* The mark's own Off Black plate would vanish on this ground, so it carries
   a hairline ring at its own corner (11.25 of 48 at 32px is 7.5, set to 8). */
.bk-logo img{
  width: 32px; height: 32px;
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .16);
}
.bk-logo:focus-visible{ outline: 2px solid var(--ap-orange); outline-offset: 4px; border-radius: 4px; }
.bk-h1{
  margin-top: round(clamp(40px, min(5.6vw, 7vh), 80px), 8px);
  color: #FFFFFF;
}
.bk-points{
  display: grid;
  gap: var(--sp-4);
  max-width: 34em;
  margin-top: var(--sp-8);
  padding: 0;
  list-style: none;
}
.bk-points li{
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: var(--sp-3);
  font-size: 17.81px;
  line-height: 1.3;
  color: #FFFFFF;   /* full white: on a phone the last point sits low on the ramp */
}
/* A tick in an orange disc, centred on the first line: half the line box,
   less half the disc (9 of its 18). */
.bk-check{
  width: 18px; height: 18px;
  margin-top: calc(.65em - 9px);
}
.bk-check circle{ fill: var(--ap-orange); }
/* a point's label, set apart by weight so the line scans: label, then what it means */
.bk-points b{ font-weight: 600; }
.bk-check path{ fill: none; stroke: #FFFFFF; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ── the White half ────────────────────────────────────────────────────── */
.bk-card{
  position: relative;
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: calc(var(--bk-top) + var(--sp-8)) var(--bk-in) var(--sp-8) round(clamp(48px, 9vw, 176px), 8px);
  background: #FFFFFF;
  color: var(--black);
}

.bk-head{ margin-bottom: var(--sp-8); }
.bk-h2{
  font-family: var(--font-display);
  font-size: var(--fl-t-title2);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--black);
}
.bk-h2:focus{ outline: none; }   /* focused by the script as each face opens, to be read; not a control */
.bk-sub{
  max-width: 36em;
  margin-top: var(--sp-4);
  font-size: 15.79px;
  line-height: 1.3;
  color: var(--text-secondary);
}

/* The home form's fields, one to a row. (floom-request.css sets its form
   on page columns 4–9; here a form is one column of whatever holds it.) */
.bk .rq-form{
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: var(--sp-6);
  width: 100%;
  max-width: 592px;
  margin: 0;
}
.bk .rq-form[hidden]{ display: none; }
.bk .rq-f,
.bk .bk-head,
.bk .bk-actions{ grid-column: 1 / -1; }
.bk .rq-form .bk-head{ margin-bottom: var(--sp-4); }
.bk-actions{ margin-top: var(--sp-4); }

/* ── waiting: a ring and a line over the whole White half ──────────────── */
.bk-wait{
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: var(--sp-4);
  padding: var(--sp-6);
  background: #FFFFFF;
  text-align: center;
  font-size: 15.79px;
  line-height: 1.3;
  color: var(--text-secondary);
}
.bk-wait[hidden]{ display: none; }
.bk-wait:focus{ outline: none; }   /* focused so the line is read and focus isn't lost; not a control */
.bk-spin{
  width: 32px; height: 32px;
  border: 2px solid #EDEDED;
  border-top-color: var(--ap-orange);
  border-radius: 50%;
  animation: bk-spin .9s linear infinite;
}
@keyframes bk-spin{ to{ transform: rotate(360deg); } }
/* Laid out under the ring at its size, transparent rather than hidden:
   Chrome stops rendering a cross-origin frame that is visibility:hidden or
   display:none, and Calendly's page then never boots (measured: no message
   from it at all until it was shown). A transparent frame keeps rendering.
   The script makes it inert meanwhile, so it can't be tabbed into. */
.bk-card.is-wait .bk-time{ opacity: 0; }

/* ── closed: the thanks, centred on the half like the wait ─────────────── */
.bk-done{
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: var(--sp-4);
  padding: var(--sp-6);
  background: #FFFFFF;
  text-align: center;
}
.bk-done[hidden],
.bk-done [hidden]{ display: none; }
.bk-done .bk-sub{ max-width: 28em; margin-top: 0; }
/* a text button, as a link in a sentence would be */
.bk-edit{
  margin-top: var(--sp-4);
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 15.79px;
  line-height: 1.3;
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  transition: color .2s ease;
}
.bk-edit:is(:hover, :focus-visible){ color: var(--ap-orange); }
.bk-done .bk-h2:focus{ outline: none; }

/* ── booked and cancelled: in the flow, centred between the top and the
   foot like the questions ────────────────────────────────────────────────── */
.bk .bk-face{ width: 100%; max-width: 560px; margin: auto; }
.bk-face[hidden]{ display: none; }
.bk-booked,
.bk-cancelled{ display: grid; justify-items: center; gap: var(--sp-4); text-align: center; }
.bk-booked .bk-sub,
.bk-cancelled .bk-sub{ margin-top: 0; }
.bk-face .bk-h2:focus{ outline: none; }
/* The mark: Off Black for done (the palette's success is ink), Light Gray
   for cancelled. The words carry the state; the mark repeats it. */
.bk-tick{
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  margin-bottom: var(--sp-2);
  border-radius: 50%;
  background: var(--fl-ink);
  color: #FFFFFF;
}
.bk-tick svg{ width: 24px; height: 24px; }
.bk-tick.is-off{ background: #EDEDED; color: var(--fl-ink); }

/* who it is with: the name, then the line, no picture */
.bk-host{ margin-top: var(--sp-4); font-size: 15.79px; line-height: 1.3; color: var(--text-secondary); }
.bk-host b{ font-weight: 600; color: var(--black); }

/* The call's facts, each beside its glyph, set left in a centred column. */
.bk-details{
  display: grid;
  gap: var(--sp-4);
  width: fit-content;
  max-width: 100%;
  margin: var(--sp-2) auto 0;
  padding: 0;
  list-style: none;
  text-align: left;
}
.bk-details li{
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  column-gap: var(--sp-3);
  align-items: start;
  font-size: 15.79px;
  line-height: 1.3;
  color: var(--black);
}
.bk-details svg{ width: 20px; height: 20px; color: var(--text-secondary); }
.bk-details li > span{ display: grid; gap: var(--sp-1); }
.bk-dd-sub{ font-size: 12.41px; font-weight: 450; color: var(--text-secondary); }
.bk-dd-sub:empty{ display: none; }
.bk-details a{ text-decoration: underline; text-underline-offset: 2px; }
.bk-details a:is(:hover, :focus-visible){ color: var(--ap-orange); }

/* Invite teammates: the label, the field and its button on one line. */
.bk .bk-invite{ row-gap: var(--sp-2); margin-top: var(--sp-8); text-align: left; }
.bk .bk-invite[hidden]{ display: none; }
.bk-invite > label{ font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--black); }
.bk-invite-row{ display: flex; gap: var(--sp-2); }
.bk-invite-row .rq-in{ flex: 1 1 auto; min-width: 0; }
.bk-invite-row .ap-ctl{ flex: none; min-height: 48px; }
.bk-invite-ok{ margin: 0; font-size: 14px; line-height: 1.3; color: var(--fl-ink); }
.bk-invite-ok[hidden]{ display: none; }

.bk-row{ display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-3); margin-top: var(--sp-6); }
.bk-row[hidden]{ display: none; }
.bk-row .ap-ctl,
.bk-row .ap-btn{ min-height: 44px; }
.bk-face .ap-ctl > svg{ flex: none; width: 16px; height: 16px; }

/* Cancelling opens here, under the facts: the reason, Keep or Cancel. */
.bk .bk-cancel{ row-gap: var(--sp-4); margin-top: var(--sp-8); text-align: left; }
.bk .bk-cancel[hidden]{ display: none; }
.bk-cancel .bk-row{ justify-content: flex-start; margin-top: 0; }
.bk-cancel .rq-in.bk-reason{
  height: auto;
  min-height: 128px;
  padding: var(--sp-3) var(--sp-4);
  line-height: 1.3;
  resize: vertical;
}

.bk-cancelled .bk-again-q{ margin-top: var(--sp-4); font-size: 15.79px; line-height: 1.3; color: var(--text-secondary); }
.bk-cancelled .bk-again-q b{ display: block; font-weight: 600; color: var(--black); }
/* its close sits at the half's top corner, as on the calendar */
.bk-face-close{ position: absolute; top: var(--sp-8); right: var(--sp-8); margin: 0; }

/* ── the scheduler, in the questions' place ──────────────────────────────
   The calendar takes the half's width (up to the frame's 640), with only its
   close over it, on the right (its heading is for a reader, .ed-sr). */
.bk-card{ --bk-time-in: var(--sp-12); }
.bk-card.is-time{ padding-inline: var(--bk-time-in); }
/* Loading ahead: while the questions are open the calendar is laid out at
   its own width under them, transparent (see the wait, above) and out of
   reach, so Calendly has booted by the time they are answered. */
.bk-card:not(.is-time) .bk-time{
  position: absolute;
  z-index: -1;
  top: 0; bottom: 0;
  left: var(--bk-time-in); right: var(--bk-time-in);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
.bk-time{ width: 100%; max-width: 640px; margin-inline: auto; }
.bk-time[hidden]{ display: none; }
.bk-time-head{
  display: flex;
  justify-content: flex-end;
  margin-bottom: var(--sp-2);
}
/* The calendar sits straight on the half, without the card's hairline. */
.bk-time .ed-cal-card::after{ display: none; }
.bk-close{
  flex: none;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  margin: calc(var(--sp-3) * -1) calc(var(--sp-3) * -1) 0 0;   /* the glyph on the label's line, the target round it */
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.bk-close svg{ width: 20px; height: 20px; }
.bk-close:hover{ background: color-mix(in srgb, var(--black) 4.5%, transparent); color: var(--black); }
.bk-close:focus-visible{ outline: 2px solid var(--ap-orange); outline-offset: 2px; }
.bk-card.is-booked .bk-close{ display: none; }   /* booked: Calendly's own page offers reschedule and cancel */
/* Until it takes Calendly's class the frame has the card's own first height
   (floom-editorial.css), so the skeleton and a failure have room. */
.bk-cal-frame:not(.calendly-inline-widget){ height: 608px; }

.bk-foot{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2) var(--sp-6);
  margin-top: auto;
  padding-top: var(--sp-12);
  font-size: 12.41px;
  line-height: 1.3;
  color: var(--text-secondary);
}
.bk-foot-links{ display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-6); }
.bk-foot a{ color: inherit; transition: color .2s ease; }
.bk-foot a:is(:hover, :focus-visible){ color: var(--black); }
/* A finger gets the 44px target round each small link (12px of padding each
   side of a 16px line, set to 14 + 16 + 14). */
@media (pointer: coarse){
  .bk-foot{ row-gap: 0; }
  .bk-foot a{ padding-block: 14px; }
}

/* ── narrower ──────────────────────────────────────────────────────────── */
@media (max-width: 1023.98px){
  .bk{
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    --bk-top: var(--sp-12);
    --bk-in: var(--fl-gutter);
  }
  .bk-side{ padding-bottom: var(--sp-12); }
  .bk-card{ grid-column: 1; grid-row: 2; padding: var(--sp-12) var(--bk-in) var(--sp-8); }
  .bk-card{ --bk-time-in: var(--bk-in); }
  .bk-card.is-wait{ min-height: 480px; }
  .bk-card:has(> .bk-done:not([hidden])){ min-height: 480px; }
}
@media (max-width: 719.98px){
  .bk{ --bk-top: var(--sp-8); }
  .bk-h1{ margin-top: var(--sp-10); }
  .bk-points li{ font-size: 15.79px; }
  .bk-side{ padding-bottom: var(--sp-10); }
  .bk-card{ padding-top: var(--sp-10); }
}
@media (prefers-reduced-motion: reduce){
  .bk-close, .bk-foot a, .bk-edit{ transition: none; }
  /* the ring breathes instead of turning */
  .bk-spin{ animation: bk-breathe 1.4s ease-in-out infinite; }
}
@keyframes bk-breathe{ 50%{ opacity: .4; } }
