/* prototypes/live/integrations/page.css — live clone of www.applicaa.com/integrations
 *
 * DEV-ONLY prototype stylesheet, page-specific half only. The shared live template
 * (`.live-page`: page surface, lv-pt-* pads, lv-stack-*, lv-head, lv-measure-*) is
 * prototypes/live/_shared/product.css, linked before this file.
 *
 * Scope: `.live-integrations`. Visuals measured from the live Webflow CSS; type and colour from
 * DS tokens. Live breakpoints are 991px and 767px.
 *
 *   I1 hero (light)      I2 video band       I3 benefit cards
 *   I4 coral band + logos                    I5 MIS data-field sections
 *
 * Rules (ai-docs/coding-standards.md §2): narrowest property, no shorthand resets of groups we
 * do not own, never the important flag, colours only through tokens / color-mix() over a token.
 */

/* Extra literal pads this page needs beyond the shared set (live steps them to 32 at ≤991). */
.live-integrations .section.lv-pt-56 { padding-top: 56px; }
.live-integrations .section.lv-pb-56 { padding-bottom: 56px; }
@media (max-width: 991px) {
  .live-integrations .section.lv-pt-56 { padding-top: 32px; }
  .live-integrations .section.lv-pb-56 { padding-bottom: 32px; }
}
.live-integrations .lv-measure-480 { max-width: 480px; }
.live-integrations .lv-measure-792 { max-width: 792px; }

/* I1 · Hero — live `.hero-light-section`: sky wash (40% → 0), 360px min, 88 / 60 padding (the 88
 * includes the spacer under live's fixed header); 48 / 32 at ≤991, 24 bottom at ≤767. Inner
 * `.hero-content-wrapper`: 984 max, 80px top pad (40 at ≤991), 16px gap. */
.live-integrations .lv-hero-light {
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  min-height: 360px; padding-top: 88px; padding-bottom: 60px; padding-inline: 12px;
  text-align: center;
  background-image: linear-gradient(color-mix(in srgb, var(--color-product-sky) 40%, transparent),
                                    color-mix(in srgb, var(--color-product-sky) 0%, transparent));
}
.live-integrations .lv-hero-light-inner {
  display: flex; flex-direction: column; align-items: center; row-gap: 16px;
  width: 100%; max-width: 984px; padding-top: 80px;
}
@media (max-width: 991px) {
  .live-integrations .lv-hero-light { min-height: 0; padding-top: 48px; padding-bottom: 32px; }
  .live-integrations .lv-hero-light-inner { padding-top: 40px; }
}
@media (max-width: 767px) {
  .live-integrations .lv-hero-light { padding-bottom: 24px; }
}

/* I2 · Video — live `.edge-video-wection`: white, the 720px 16:9 player overlaps a 128px
 * light-blue band at the bottom that runs into section 03; the demos button sits under it. */
.live-integrations .lv-int-video {
  position: relative; z-index: 0;
  display: flex; flex-direction: column; align-items: center; row-gap: 24px;
  padding-inline: 32px; background-color: var(--color-paper);
}
.live-integrations .lv-int-video-band {
  position: absolute; left: 0; bottom: 0; z-index: -1; width: 100%; height: 128px;
  background-color: var(--color-light-blue);
}
.live-integrations .lv-int-player {
  width: 100%; max-width: 720px; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: var(--radius-2xl); background-color: var(--color-paper); box-shadow: var(--shadow-mock);
}
.live-integrations .lv-int-player iframe { display: block; width: 100%; height: 100%; border: 0; }
@media (max-width: 767px) {
  .live-integrations .lv-int-video { padding-inline: 0; }
  .live-integrations .lv-int-player { border-radius: 0; }
}

/* I3 · Benefit cards — live `.frame-1707478985`: up to 360px, 40 / 60 padding, 32px gap, 16px
 * radius, same wash as the section, a wide soft navy shadow. Live squeezes them to 120px
 * columns on a phone (text width 0); they stack here instead (a live bug fixed). */
.live-integrations .lv-int-benefits {
  display: flex; justify-content: center; align-items: flex-start; column-gap: 24px; width: 100%;
}
.live-integrations .lv-int-benefit {
  display: flex; flex-direction: column; align-items: center; row-gap: 32px;
  width: 100%; max-width: 360px; padding: 40px 60px;
  border-radius: var(--radius-2xl); text-align: center;
  background-color: var(--lv-int-card-wash);
  box-shadow:
    30px 42px 72px color-mix(in srgb, var(--color-ink-royal) 10%, transparent),
    24px 56px 56px color-mix(in srgb, var(--color-ink-deep) 6%, transparent);
}
.live-integrations .lv-int-benefit img { width: 48px; height: 48px; }
/* live `.frame-7873`: the icon sits in a white 12px-padded round chip */
.live-integrations .lv-int-benefit-icon {
  display: block; padding: 12px; border-radius: var(--radius-full); background-color: var(--color-paper);
}
/* the card title and body sit 8px apart on live (24px line boxes, no extra gap) */
.live-integrations .lv-int-benefit h3 + p { margin-top: -24px; }
@media (max-width: 991px) {
  .live-integrations .lv-int-benefit { padding: 32px 24px; }
}
@media (max-width: 767px) {
  .live-integrations .lv-int-benefits { flex-direction: column; align-items: center; row-gap: 24px; }
}

/* I4 · Coral band — live `.core-value-section-2`: coral → deeper coral gradient; the
 * description runs at 80% white. Four white logo tiles, 22px apart, 8px radius. */
.live-integrations .lv-int-coral {
  background-image: linear-gradient(var(--lv-int-salmon), var(--lv-int-salmon) 56%, var(--lv-int-red-bright));
}
.live-integrations .lv-int-coral-desc { opacity: 0.8; }
.live-integrations .lv-int-logos { display: flex; column-gap: 22px; width: 100%; }
.live-integrations .lv-int-logos img {
  min-width: 0; flex: 1 1 0; height: auto;
  border-radius: var(--radius-lg); background-color: var(--color-paper);
  box-shadow: 0 8px 16px color-mix(in srgb, var(--color-ink-deep) 12%, transparent);
}
@media (max-width: 767px) {
  .live-integrations .lv-int-logos { column-gap: 8px; }
}

/* I5 · MIS data fields — live `.core-value-section-3`: a 1224px row; the intro column is 600px
 * and 664px tall (title 480 max, description, 544 × 400 art); the data column is 600px. Live
 * keeps both columns on a phone with no gutter; they stack here (a live bug fixed). */
.live-integrations .lv-int-mis { display: flex; align-items: flex-start; column-gap: 24px; }
.live-integrations .lv-int-mis-intro {
  display: flex; flex-direction: column; align-items: center; row-gap: 16px;
  width: 100%; height: 664px;
}
.live-integrations .lv-int-mis-title { width: 100%; max-width: 480px; }
.live-integrations .lv-int-mis-intro > p { width: 100%; }
.live-integrations .lv-int-mis-art { width: 100%; max-width: 544px; height: auto; margin-top: 12px; }
.live-integrations .lv-int-mis-data { display: flex; flex-direction: column; row-gap: 8px; width: 100%; min-width: 0; padding-top: 8px; }
/* Per-MIS accent (live tints the title + the current tab label): SIMS/iSAMS blue,
 * Bromcom red, Arbor green. */
.live-integrations .lv-int-title-red   { color: var(--lv-bromcom-red); }
.live-integrations .lv-int-title-green { color: var(--color-product-leaf); }
.live-integrations .lv-int-accent-blue  .lv-int-tabs .tab[aria-selected="true"] { color: var(--color-info-blue); }
.live-integrations .lv-int-accent-red   .lv-int-tabs .tab[aria-selected="true"] { color: var(--lv-bromcom-red); }
.live-integrations .lv-int-accent-green .lv-int-tabs .tab[aria-selected="true"] { color: var(--color-product-leaf); }
.live-integrations .lv-int-tabs .tab { padding-block: 6px; font-weight: 700; }
/* Field groups: live header 56px (16 pad), list indented 50px, 24px below, 6px row gap. */
.live-integrations .lv-int-acc .accordion-header { column-gap: 24px; padding-block: 16px; }
.live-integrations .lv-int-acc .accordion-title {
  flex: 1 1 auto; color: var(--color-ink-royal);
  /* live 21px / 600 group title = the DS h4 step (20px / 1.3); the DS accordion default is body-l */
  font-size: var(--font-size-heading-4); line-height: var(--line-height-heading-4);
}
.live-integrations .lv-int-acc .accordion-header[aria-expanded="true"] + .accordion-panel { padding-top: 0; padding-bottom: 24px; }
.live-integrations .lv-int-acc .accordion-panel::before { content: none; }
.live-integrations .lv-int-acc .accordion-item + .accordion-item { border-top-color: color-mix(in srgb, var(--color-ink-deep) 10%, transparent); }
/* I-ix · Motion from live (ix sweep 2026-11-22). Live's inline script/CSS: a group's content
 * animates max-height + padding over `0.4s all ease` and its arrow turns 180deg over the same 0.4s;
 * the DS accordion uses 200ms ease-out. Group headers and the direction tabs have no hover state on
 * live (the DS adds a grey header wash and an ink-royal tab label). Live's Webflow tabs fade the new
 * pane in over 300ms ease (data-duration-in="300"); the DS swaps instantly. */
.live-integrations .lv-int-acc .accordion-panel { transition-duration: 400ms; transition-timing-function: ease; }
.live-integrations .lv-int-acc .accordion-caret { transition-duration: 400ms; transition-timing-function: ease; }
.live-integrations .lv-int-acc .accordion-header:hover { background-color: transparent; }
.live-integrations .lv-int-tabs .tab[aria-selected="false"]:hover { color: var(--color-ink-soft); }
@keyframes lv-int-pane-in { from { opacity: 0; } to { opacity: 1; } }
.live-integrations .lv-int-mis-data .tab-panel:not([hidden]) { animation: lv-int-pane-in 300ms ease; }
@media (prefers-reduced-motion: reduce) {
  .live-integrations .lv-int-mis-data .tab-panel:not([hidden]) { animation-name: none; }
}
.live-integrations .lv-int-num { position: relative; display: inline-flex; flex: none; width: 24px; height: 24px; }
.live-integrations .lv-int-num img { width: 24px; height: 24px; }
.live-integrations .lv-int-num span {
  position: absolute; inset: 0; display: flex; justify-content: center; align-items: center;
  font-family: var(--font-heading); font-weight: 700; font-size: var(--font-size-body-xs); color: var(--color-ink-deep);
}
.live-integrations .lv-int-fields { flex-direction: row; flex-wrap: wrap; column-gap: 24px; row-gap: 6px; padding-left: 50px; }
.live-integrations .lv-int-fields > li { width: calc(50% - 12px); gap: 6px; }
@media (max-width: 991px) {
  .live-integrations .lv-int-acc .accordion-header { column-gap: 16px; }
  .live-integrations .lv-int-fields { padding-left: 40px; }
}
@media (max-width: 767px) {
  .live-integrations .lv-int-mis { flex-direction: column; row-gap: 32px; }
  .live-integrations .lv-int-mis-intro { height: auto; }
}

/* R3 · Page colours with no DS token or shared --lv-* variable (refine round 3). Live values:
 * .core-value-section-2 gradient #fa7167 / #fa7066 -> #f8453f (the token mix it replaced,
 * primary-light -> coral-500 -> bad-coral, read noticeably duller), and the benefit cards' wash
 * #f2f8fd (light-blue #e9f1fe made the cards vanish into the section). */
.live-integrations {
  --lv-int-salmon: #fa7167;
  --lv-int-red-bright: #f8453f;
  --lv-int-card-wash: #f2f8fd;
}

/* R3 · Light-hero glob fade. The hero's own sky wash fades to white at the bottom, but the glob
 * canvas covers the full hero box and ended in a hard line against the white video section. */
.live-integrations .lv-hero-light > .lv-hero-glob {
  mask-image: linear-gradient(var(--color-ink-deep) 40%, transparent); /* only alpha counts in a mask */
}

/* B-HOLD · These buttons are NOT Webflow `.button` on live (button-style-35): no hover and no
 * pressed state. Hold the resting look - no colour change, no text-shadow, no 1px press (ix merge
 * 2026-11-22; live classes read from the live page source; selected by each button's own href). */
.live-integrations a.btn-outline-primary[href="/demos"]:hover,
.live-integrations a.btn-outline-primary[href="/demos"]:active {
  background-color: transparent; border-color: var(--color-primary-400); color: var(--color-coral-500);
  text-shadow: none; transform: none;
}
