/* Page CSS for partners.bungstays.com. The kit (public/assets) is the system; this file holds only
   what the recipes call page CSS: the app frame, the pieces inside the hero's art, three small
   layout rules the kit has no class for, and one --p-h per group. */

/* the client's wordmark is wider than a mark: 22px tall in the bar */
.nav__logo svg { height: 22px; }

/* hero (collage): the window's content keeps the cut clear of its status chips; the result card */
.hero__proof { font-size: var(--t-small); color: var(--muted); }
.hero__art .ly-piece--main .ui-win__main { padding-right: var(--ly-cut-room); }
.hero__art > .note { left: var(--s-6); bottom: var(--s-6); width: 300px; z-index: 2; padding: 16px 18px; }
.note__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 8px; font-size: 13px; }
.note__row b { font-weight: 500; color: var(--u-ink); }
.note__line { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 13px; color: var(--u-soft); border-top: 1px solid var(--u-line); }
.note__line i { width: 18px; height: 18px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--u-fill-2); color: var(--u-ink); font-style: normal; font-size: 11px; font-weight: 700; }
.note__line b { font-weight: 500; color: var(--u-ink); }
@media (max-width: 1023px) { .hero__art > .note { left: var(--s-4); bottom: var(--s-4); width: 270px; } }

/* app-frame (sections-library.md, the whole recipe) */
.app.ui { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); margin-top: var(--s-7); background: var(--u-bg); border: 1px solid var(--u-border); border-radius: var(--u-r); box-shadow: var(--u-shadow); }
.app > .app__pane { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
.app > .app__pane + .app__pane { border-left: 1px solid var(--u-line); }
.app > .app__pane > .ui-panel { width: 100%; max-width: none; border: 0; border-radius: 0; box-shadow: none; }
.app > .app__pane::after { content: ""; position: absolute; inset: auto 0 0 0; height: 64px; background: linear-gradient(transparent, var(--u-bg)); pointer-events: none; }
@media (min-width: 1024px) and (max-width: 1279px) { .app.ui { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
@media (max-width: 1023px) {
  .app.ui { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .app > .app__pane--list { max-height: 252px; }
  .app > .app__pane--list::after { display: none; }
  .app .ui-win__side { display: none; }
  .app .ui-win__body { grid-template-columns: minmax(0, 1fr); }
  .app > .app__pane + .app__pane { border-left: 0; border-top: 1px solid var(--u-line); }
}
@media (max-width: 639px) {
  .app.ui { grid-template-rows: minmax(0, 1fr); }
  .app > .app__pane--list { display: none; }
  .app > .app__pane + .app__pane { border-top: 0; }
}

/* up to three short facts as plain lines under a split's text */
.facts { list-style: none; margin-bottom: 0; padding: 0; display: grid; gap: var(--s-2); }
.facts > li { padding-top: var(--s-2); border-top: 1px solid var(--line); }

/* tabs-tour: every panel one fixed height, so the frame never resizes */
.tabs { margin-top: var(--s-6); }
.tabs__panel { margin-top: var(--s-5); min-height: 216px; }
@media (max-width: 639px) { .tabs__panel { min-height: 0; } }

/* three photographs: two side by side, the third across under them */
.trio { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); align-self: start; }
.trio > .frame { --ratio: 105%; }
.trio > .frame:last-child { grid-column: 1 / -1; --ratio: 40%; }
@media (max-width: 639px) { .trio { gap: var(--s-3); } .trio > .frame { --ratio: 84%; } .trio > .frame:last-child { display: none; } }

/* the diagram card's panel beside its text */
.sources__panel { --p-h: 520px; align-self: start; }
@media (max-width: 1023px) { .sources__panel { --p-h: 420px; margin-top: var(--s-7); } }
@media (max-width: 639px) { .sources__panel { --p-h: 340px; } }

/* the statement's three steps, under its headline */
.steps { list-style: none; margin: var(--s-8) 0 0; padding: 0; }
.steps > li { padding-top: var(--s-4); border-top: 1px solid var(--line); }
.steps h3 { font: 500 var(--t-lead)/1.4 var(--font-text); letter-spacing: 0; }

/* close-word: the name set by hand so its descenders show (Bungstays has a g and a y) */
.close__word { font-size: clamp(64px, 17.6vw, 268px); line-height: 1.04; flex: none; overflow: visible; max-width: 100%; }
@media (max-width: 639px) { .close__word { font-size: clamp(52px, 18vw, 92px); } }

/* contrast: the mock-ups' quiet text reaches 4.5:1 on white and on the hero's sage ground */
.ui { --u-soft: var(--u-muted); }
.hero__art .ui, .others .panel .ui { --u-muted: #485046; --u-accent-text: #2c4f33; }
.hero__art .ui-avatar { color: var(--u-ink); }

/* small links keep a 24px target */
.nav__logo { display: inline-flex; align-items: center; min-height: 24px; }
.footer__col a { display: inline-block; min-height: 24px; line-height: 24px; }
.footer__legal a, .credits > summary { padding-block: 3px; }

/* the close word is decoration: wider letter spacing set by a reader never scrolls the page sideways */
.closing { overflow-x: clip; }

/* product pages: the three cards for the other products share one panel height */
.others .panel { --p-h: 300px; }
.others .card > .link { justify-self: start; }
/* under 1024 the three cards stack, one per row, across two screens */
@media (min-width: 640px) and (max-width: 1023px) { .others { --h: 2; } .others .panel { --p-h: clamp(340px, 38vh, 440px); } }
@media (max-width: 639px) { .others .panel { --p-h: 280px; } }

/* the footer on a phone stays one screen: the four products two by two across the row, and the
   lede and the Account column (Log in is in the menu, Book a demo is the button above) left out */
@media (max-width: 639px) {
  .closing__links .grid > .span-4 { display: none; }
  .closing__links, .closing__links > .grid { gap: var(--s-4); row-gap: var(--s-4); }
  .closing__links .footer__col:nth-child(2) { grid-column: 1 / -1; }
  .closing__links .footer__col:nth-child(2) > ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-4); }
  .closing__links .footer__col:last-child { display: none; }
  .faq > .faq__item:nth-child(n+5) { display: none; }
  #screen .frame--split { --ratio: 76%; }
  /* the home page's splits on a phone: a shorter picture and one fact fewer, so each stays one screen */
  #munim .frame--split, #products .frame--split { --ratio: 58%; }
  #munim .facts > li:last-child, #sources .facts { display: none; }
  .others { --h: 2; }
}
/* the product's screen on a tablet: a shorter frame, so the section stays one screen */
@media (min-width: 640px) and (max-width: 1023px) { #screen .frame--split { --ratio: 68%; } }
@media (max-width: 639px) { #screen .ui-stat__num { font-size: 24px; line-height: 28px; } }
/* the home page's splits on a tablet stay one screen: a shorter picture, the tab text's box no taller
   than its text, and the third photograph left out */
@media (min-width: 640px) and (max-width: 1023px) {
  #munim .frame--split, #products .frame--split { --ratio: 60%; }
  .tabs__panel { min-height: 150px; }
  .trio > .frame:last-child { display: none; }
}
/* the revenue chart is short: on a tablet it sits lower in its frame, nearer the next section */
@media (min-width: 640px) and (max-width: 1023px) { #screen .stage > .at-rise:has(> .ui-stat) { --ay: 180px !important; } }
/* tablet: the calendar-sync window fits its frame with equal sides, and the app frame's event list
   sits on the window's own ground (a tinted strip that wide reads as a band) */
@media (min-width: 640px) and (max-width: 1023px) {
  #screen-calendar { right: var(--ax); }
  #screen-calendar > .ui { width: 100%; max-width: 100%; }
  .app .ui-cal__events { background: none; }
}
