/* Apax Link site: fixes on top of the design kit (kept out of the kit's own files).
   Big monitors: the kit makes every section exactly one screen tall. On screens taller than about 1000px
   that left the 1280px-wide content floating in empty space and stretched cards and photo panels with
   nothing in them. Here a "screen" is capped at 1000px, and wide screens get a wider content column. */
@media (min-width: 1280px) and (min-height: 1001px) {
  :root {
    --scr: 1000px;
    --ly-screen: calc(var(--scr) - var(--ly-nav, 72px));
    --ly-fit: calc(var(--scr) - var(--padt, 120px) - var(--padb, 72px) - var(--bar, 0px));
    --ly-hero-h: calc(var(--scr) - var(--nav, 72px) - var(--hgap, 48px) - var(--hpadb, 64px) - var(--bar, 0px));
    --pl-room: calc(var(--scr) - var(--padt) - var(--padb) - var(--bar));
  }
  main > :is(section, .section), footer.closing { height: calc(var(--h, 1) * var(--scr)); }
  main > :is(.hero, .section--hero) { height: var(--scr); }
}
@media (min-width: 1800px) { :root { --container: 1440px; } }
@media (min-width: 2400px) { :root { --container: 1600px; } }

/* hero facts (/it): right under the buttons on one line each, not pinned to the bottom of the screen */
@media (min-width: 1024px) {
  .hero-split > .hero-copy > .hero-facts { margin-top: var(--s-7); }
  .hero-facts { display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-7); padding-top: var(--s-5); border-top: 1px solid color-mix(in oklab, currentColor 14%, transparent); }
  .hero-facts dt { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
  .hero-facts dd { white-space: nowrap; }
}

/* "How it starts" (pinned while scrolling): on a tall screen the pinned frame is one capped screen, centred */
@media (min-width: 1280px) and (min-height: 1001px) {
  main > [data-moment="pinned-chapters"].is-live { height: calc((var(--mo-hold) + 1) * var(--scr)); }
  main [data-moment="pinned-chapters"][data-moment].is-live > .mo-pc__grid { height: var(--scr); top: calc((100svh - var(--scr)) / 2); }
}

/* Sections fit their content (tablet and up). The kit's one-section-per-screen rhythm left large empty
   gaps under any section with less than a screen of content (reviews, the team list, the closing band).
   The hero and the pinned "how it works" sections keep their screen height. */
@media (min-width: 640px) {
  main > :is(section, .section):not(.hero, .section--hero, [data-moment]), footer.closing { height: auto; min-height: 0; }
  main > :is(section, .section):not(.hero, .section--hero, [data-moment]) > :is(.wrap, .container), footer.closing > .wrap { height: auto; }
}

/* When the page ends with the trial or assessment form, the closing band doesn't repeat the same call to
   action right under it (the heading stays for screen readers; the big wordmark and links stay). */
body:has(main > :is(#trial, #assessment):last-child) footer.closing .closing__cta > .section-head--split {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* Booking and /it: a photo behind the hero card, steps in one row, features as a bento, photo cards for who
   it's for. Prices come right after the features so they're 3 screens down, not 6. */
main > :is(#how, #start, #features, #services, #industries, #who) { height: auto; min-height: 0; }
main > :is(#how, #start, #features, #services, #industries, #who) > .wrap { height: auto; }
.ph-hero { position: relative; overflow: hidden; border-radius: var(--r-lg, 20px); display: grid; place-items: end start; padding: var(--s-6); min-height: 560px; background: #142338; }
.ph-hero .ph img { object-position: 55% 30%; }
.ph-hero > :not(.ph, .ui-pause) { position: relative; z-index: 1; width: min(420px, 100%); }
.how3 { list-style: none; padding: 0; margin: var(--s-7) 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-6); }
.how3 figure { margin: 0 0 var(--s-5); border-radius: var(--r-lg, 16px); overflow: hidden; aspect-ratio: 3 / 2; background: color-mix(in oklab, currentColor 6%, transparent); }
.how3 img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* app screenshots (a phone, an invoice): taller frames, the whole screen shown, so the words are readable */
.how3--shots figure { aspect-ratio: 4 / 5; background: #12151c; padding: var(--s-4); }
.how3--shots img { object-fit: contain; }
.how3 .n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 99px; background: #0a6cff; color: #fff; font-weight: 600; font-size: 13px; margin-bottom: var(--s-3); }
.how3 h3 { margin: 0 0 var(--s-2); font-size: 1.25rem; }
.how3 p { margin: 0; color: var(--muted); }
.bento { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 16px; margin-top: var(--s-7); }
.bt { position: relative; display: flex; flex-direction: column; gap: 6px; padding: var(--s-6); border-radius: 18px; background: color-mix(in oklab, currentColor 5%, transparent); border: 1px solid color-mix(in oklab, currentColor 12%, transparent); transition: transform 220ms cubic-bezier(.23, 1, .32, 1), box-shadow 220ms cubic-bezier(.23, 1, .32, 1); }
@media (hover: hover) and (pointer: fine) { .bt:hover { transform: translateY(-3px); box-shadow: 0 14px 32px -18px rgb(0 0 0 / .45); } }
.bt h3 { margin: 0; font-size: 1.125rem; }
.bt p { margin: 0; color: var(--muted); }
.bt-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; margin-bottom: var(--s-3); background: rgb(10 108 255 / .14); color: #5c9dff; }
.bt-ic svg { width: 22px; height: 22px; }
.bt-live { margin-top: auto; padding-top: var(--s-4); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13.5px; }
.bt--big { grid-row: span 3; padding: var(--s-7); color: #fff; border-color: #22304a; background: radial-gradient(120% 80% at 0% 0%, #123a7a, #0d1117 60%); }
.bt--big h3 { font-size: 1.625rem; } .bt--big p { color: #b4bcc8; }
.bt--big figure { margin: var(--s-6) calc(-1 * var(--s-7)) calc(-1 * var(--s-7)); flex: 1; min-height: 260px; overflow: hidden; border-radius: 0 0 18px 18px; }
.bt--big figure img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; display: block; }
.bento > .bt:last-child { grid-column: span 2; }
.bt--photo { overflow: hidden; isolation: isolate; color: #fff; border-color: transparent; background: #0d1117; justify-content: space-between; }
.bt--photo .bt-bg, .bt--photo .bt-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.bt--photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(10 14 22 / .85), rgb(10 14 22 / .2) 55%, rgb(10 14 22 / .7)); }
.bt--photo p { color: #d0d6df; }
.bt--wide.bt--photo::before { background: linear-gradient(90deg, rgb(10 14 22 / .92) 35%, rgb(10 14 22 / .35)); }
.bt-card { margin-top: var(--s-6); width: min(340px, 100%); }
.setup-line { margin: var(--s-6) 0 0; padding: var(--s-4) var(--s-5); border-radius: 14px; border: 1px solid color-mix(in oklab, currentColor 14%, transparent); background: color-mix(in oklab, currentColor 3%, transparent); }
.ic-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: var(--s-7); }
.ic-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ic-card { position: relative; display: block; overflow: hidden; border-radius: 18px; aspect-ratio: 3 / 4; color: #fff; text-decoration: none; background: #0d1117; }
.ic-grid--3 .ic-card { aspect-ratio: 4 / 3; }
.ic-card picture, .ic-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 400ms cubic-bezier(.23, 1, .32, 1); }
.ic-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(10 14 22 / 0) 20%, rgb(10 14 22 / .55) 50%, rgb(10 14 22 / .94) 78%); } /* the words sit on near-solid dark, whatever the photo */
.ic-card > div { position: absolute; left: 20px; right: 20px; bottom: 20px; z-index: 1; }
.ic-card h3 { margin: 0 0 4px; font-size: 1.25rem; color: #fff; }
.ic-card p { margin: 0 0 10px; color: #e8ecf1; font-size: 14px; text-shadow: 0 1px 2px rgb(0 0 0 / .5); }
.ic-card h3 { text-shadow: 0 1px 2px rgb(0 0 0 / .45); }
.ic-card span { font-weight: 600; font-size: 14px; }
@media (hover: hover) and (pointer: fine) { .ic-card:hover img { transform: scale(1.04); } }
.ic-card:focus-visible { outline: 2px solid #5c9dff; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .bt, .ic-card img { transition: none; } }
@media (max-width: 1023px) { .ic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bento { grid-template-columns: 1fr 1fr; } .bt--big { grid-row: auto; grid-column: 1 / -1; } }
@media (max-width: 767px) { .how3, .bento, .ic-grid--3 { grid-template-columns: minmax(0, 1fr); } .bento > .bt:last-child { grid-column: auto; } .ph-hero { min-height: 460px; padding: var(--s-4); place-items: end center; } }
@media (max-width: 479px) { .ic-grid { grid-template-columns: minmax(0, 1fr); } .ic-card { aspect-ratio: 4 / 3; } }
.ph-hero .ph { position: absolute; inset: 0; display: block; }
.ph-hero .ph img { width: 100%; height: 100%; object-fit: cover; }
.ph-hero .ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(10 14 22 / 0) 45%, rgb(10 14 22 / .55)); }
.hero--collage .hero__art.ph-hero { padding: var(--s-6); place-items: end start; background: #142338; }
@media (max-width: 639px) { .hero--collage .hero__art.ph-hero { padding: var(--s-4); place-items: end center; min-height: 460px; height: auto; } }

/* Industry pages: job tiles in one row of three; the menu's industry cards are photos. */
main > #jobs { height: auto; min-height: 0; }
main > #jobs > .wrap { height: auto; }
.bento--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bento--3 > .bt:last-child { grid-column: auto; }
.ph-hero > .hero-note { width: min(340px, 100%); }
.menu-card--photo .panel { position: relative; overflow: hidden; aspect-ratio: 4 / 3; height: auto; padding: 0; }
.menu-card--photo .panel picture, .menu-card--photo .panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hm-reviews__more { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4) var(--s-6); }
@media (max-width: 1023px) { .bento--3 { grid-template-columns: minmax(0, 1fr); } }
.hm-reviews__more .btn { color: inherit; text-decoration: none; }

/* ---- /booking-software: compare plans (under the three price cards) ---- */
/* closed by default: one row under the price cards that opens the full table in place, so the pricing
   section stays about one screen tall. A link to #compare opens it (script at the end of the page). */
.cmp{margin-top:var(--s-6,32px)}
.cmp>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;list-style:none;cursor:pointer;padding:16px 20px;border:1px solid var(--line);border-radius:14px;font-weight:600;min-height:56px}
.cmp>summary::-webkit-details-marker{display:none}
.cmp>summary:focus-visible{outline:2px solid currentColor;outline-offset:2px}
.cmp[open]>summary{margin-bottom:var(--s-4,16px)}
.cmp-chev{flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:transform .2s cubic-bezier(.23,1,.32,1)}
.cmp[open] .cmp-chev{transform:rotate(180deg)}
@media (hover:hover) and (pointer:fine){.cmp>summary:hover{border-color:var(--line-strong)}}
@media (prefers-reduced-motion:reduce){.cmp-chev{transition:none}}
.cmp-box{overflow-x:auto;border:1px solid var(--line);border-radius:16px;background:var(--bg)}
.cmp-box:focus-visible{outline:2px solid currentColor;outline-offset:2px}
.cmp-t{width:100%;min-width:640px;border-collapse:collapse;font-size:15px}
.cmp-t th,.cmp-t td{padding:12px 16px;text-align:center}
.cmp-t thead th{vertical-align:bottom;font-weight:600;font-size:17px;padding-top:18px;padding-bottom:14px}
.cmp-t thead th small{display:block;font-weight:400;font-size:13px;color:var(--muted);margin-top:2px}
.cmp-t thead th:first-child{font-weight:400;font-size:14px;color:var(--muted)}
.cmp-t th:first-child{text-align:left;position:sticky;left:0;background:var(--bg);z-index:1}
.cmp-t tbody th{font-weight:400}
.cmp-t tbody tr:not(.cmp-g)>*{border-top:1px solid var(--line)}
.cmp-g th{padding-top:22px;padding-bottom:8px;font-size:12px;letter-spacing:.05em;text-transform:uppercase;font-weight:600;color:var(--muted)}
.cmp-y{display:inline-block;fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}
.cmp-n{color:var(--muted)}
@media (max-width:700px){.cmp-t{font-size:14px}.cmp-t th,.cmp-t td{padding:10px 12px}.cmp-t th:first-child{max-width:46vw}}

/* ---- /booking-software: questions use the kit's own .faq pattern (answers always visible); two columns on wide screens ---- */
@media (min-width:900px){#faq .faq{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:var(--s-8,48px)}#faq .faq>.faq__item:nth-child(2){padding-top:0}}
#faq .faq>.faq__item{align-content:start}
