/* Uni-Bridge — build-specific additions.
   Mask icons are declared in CSS (not inline styles) so they survive
   server-side style serialization. */

/* ---------- workflow step icons ---------- */
.ub-flow__card:nth-child(1) .ub-flow__icon { --icon: url("/assets/step-legal.png"); }
.ub-flow__card:nth-child(2) .ub-flow__icon { --icon: url("/assets/step-capital.png"); }
.ub-flow__card:nth-child(3) .ub-flow__icon { --icon: url("/assets/step-portal.png"); }
.ub-flow__card:nth-child(4) .ub-flow__icon { --icon: url("/assets/step-payouts.png"); }

/* ---------- resources step icons ---------- */
.ub-res-step:nth-child(1) .ub-res-step__icon { --icon: url("/assets/step-legal.png"); }
.ub-res-step:nth-child(2) .ub-res-step__icon { --icon: url("/assets/step-portal.png"); }
.ub-res-step:nth-child(3) .ub-res-step__icon { --icon: url("/assets/step-capital.png"); }
.ub-res-step:nth-child(4) .ub-res-step__icon { --icon: url("/assets/step-payouts.png"); }

/* ---------- pooled diagram connector indices ---------- */
.ub-pool__lines path:nth-child(1) { --i: 0; }
.ub-pool__lines path:nth-child(2) { --i: 1; }
.ub-pool__lines path:nth-child(3) { --i: 2; }
.ub-pool__lines path:nth-child(4) { --i: 3; }
.ub-pool__lines path:nth-child(5) { --i: 4; }
.ub-pool__lines path:nth-child(6) { --i: 5; }

/* ---------- shared helpers the design used inline ---------- */
.ub-pool__asset--i0 { --i: 0; }
.ub-pool__asset--i1 { --i: 1; }
.ub-pool__asset--i2 { --i: 2; }
.ub-pool__asset--i3 { --i: 3; }
.ub-pool__asset--i4 { --i: 4; }
.ub-pool__asset--i5 { --i: 5; }

/* hero sub headline: Playfair Display is not bundled — fall back to the
   system serif stack the design specified. */
.ub-hero__sub--serif { font-family: "Playfair Display", Georgia, "Times New Roman", serif; font-weight: 400; }

/* inline field row helpers */
.ub-form-grid label > .ub-label { display: block; }
.ub-label-note { text-transform: none; letter-spacing: 0; margin-left: 6px; }

/* dashboard / primer state helpers */
[hidden] { display: none !important; }

/* contact: error text */
.ub-err { display: block; }

/* success summary */
.ub-success { display: flex; flex-direction: column; align-items: flex-start; }
.ub-success h3 i { font-style: italic; }

/* lightbox (offer screen) */
.ub-lightbox .ub-os-lightbox { cursor: default; }

/* small screens: marketplace tab row */
@media (max-width: 560px) {
  .ub-mkt__tabs { gap: 8px; }
}

/* pricing hero / tiers live on separate sections */
.ub-pr-tiers { position: relative; z-index: 1; overflow: visible; padding-top: 0; margin-top: -48px; background: transparent; }
.ub-pr-tiers::before { content: ""; position: absolute; inset: 48px 0 0 0; background: var(--ub-surface-light); z-index: -1; }

/* section anchor offset for the fixed header */
section[id], div[id] { scroll-margin-top: 76px; }

/* ---------- brand tagline in header ---------- */
.ub-brand__tag { font-family: "Times New Roman", Times, serif; font-size: 8px; }

/* ---------- hero sub uses Playfair with normal case/weight ---------- */
.ub-hero__sub .ub-hero__sub--serif { text-transform: none; font-style: normal; font-weight: 400; color: inherit; }

/* ---------- application anchor body ---------- */
.ub-split__anchor-body { font-family: Arial, Helvetica, sans-serif; font-weight: 600; font-style: normal; }

/* ---------- workflow start button (shares .ub-btn--sm) ---------- */
.ub-flow__controls .ub-btn[hidden],
.ub-flow__controls [hidden] { display: none !important; }

/* ---------- dashboard views ---------- */
.ub-dash__views { display: flex; flex-direction: column; gap: 20px; }
.ub-dash__view { display: flex; flex-direction: column; gap: 20px; }

/* ---------- modal schedule column ---------- */
.ub-modal__cover { display: flex; flex-direction: column; gap: 14px; }
.ub-modal__cover-row { display: grid; grid-template-columns: 32px 1fr; border-top: 1px dashed var(--ub-line-light); padding-top: 12px; }
.ub-modal__cover-actions { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.ub-modal__cover-actions .ub-textlink { align-self: flex-start; color: var(--ub-accent-on-light); }
.ub-modal__back { color: var(--ub-meta-on-light) !important; }

/* ---------- marketplace foot note on dark ---------- */
.ub-mkt__foot-note { color: var(--ub-meta-on-dark); margin: 0; }

/* ---------- form success summary ---------- */
.ub-success dl { display: grid; grid-template-columns: 140px 1fr; gap: 10px 16px; margin: 24px 0; font-size: 14px; }
.ub-success dt { font-family: var(--font-mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--ub-meta-on-light); padding-top: 3px; }
.ub-success dd { margin: 0; color: var(--ink-900); }
.ub-success h3 { margin: 24px 0 14px; }

/* ---------- pricing: featured-card price cell alignment ---------- */
.ub-pr-price { align-items: stretch; }

/* ---------- pricing cards button label left-aligned (justify space-between) ---------- */
.ub-pr-card > .ub-btn { justify-content: space-between; }

/* ---------- lightbox close on dark ---------- */
.ub-lightbox__close { color: #fff; position: fixed; right: 18px; top: 14px; }

@media (max-width: 720px) {
  .ub-success dl { grid-template-columns: 1fr; gap: 2px 0; }
  .ub-success dt { padding-top: 8px; }
}

/* ==================================================================
   Scheduling — Calendly framed in Uni-Bridge chrome.

   Calendly renders in a cross-origin iframe, so its internals can't be
   styled from here. The brand is carried INTO the iframe through URL
   params (cream paper / ink text / gold CTA) and this frame wraps it in
   the site's own panel, line and eyebrow treatment.
   ================================================================== */

.ub-book {
  display: flex;
  flex-direction: column;
  flex: 1;
  background: var(--ub-panel-lifted);
  box-shadow: inset 0 0 0 1px var(--ub-line-dark);
  padding: 26px 28px 22px;
  color: var(--ub-text-on-dark);
}

.ub-book__head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 18px;
  border-bottom: 1px dashed var(--ub-line-dark);
  margin-bottom: 18px;
}

.ub-book__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.ub-book__meta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ub-meta-on-dark);
}

/* The frame keeps Calendly's cream page flush with the forest panel. */
.ub-book__frame {
  position: relative;
  flex: 1;
  min-height: 680px;
  background: var(--cream-50);
  box-shadow: inset 0 0 0 1px var(--ub-line-accent);
  overflow: hidden;
}

.ub-book__frame .calendly-inline-widget,
.ub-book__widget {
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  border: 0;
}

/* Progressive enhancement: shown only until the widget mounts. */
.ub-book__fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ub-acc-light);
  text-decoration: none;
  background: var(--cream-50);
}

.ub-book__fallback:hover { color: var(--gold-700); }

.ub-book__alt {
  align-self: flex-start;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ub-meta-on-dark);
  text-decoration: none;
  transition: color var(--dur-fast);
}

.ub-book__alt:hover { color: var(--ub-acc-light); }

/* ---------- modal step 02 ---------- */
.ub-modal__book {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.ub-modal__book-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ub-modal__book-actions .ub-textlink { align-self: flex-start; }

/* Calendly's own popup sits above our modal — keep our scrim underneath. */
.calendly-overlay { z-index: 10000 !important; }

@media (max-width: 1020px) {
  .ub-modal__book { grid-template-columns: 1fr; gap: 24px; }
  .ub-book__frame { min-height: 700px; }
}

@media (max-width: 720px) {
  .ub-book { padding: 22px 20px 18px; }
  .ub-book__title { font-size: 20px; }
  .ub-book__frame { min-height: 640px; }
}
