/*
 * AuditorIA Lab / public homepage: refined micro-interactions.
 * Homepage-only selectors; production and authenticated areas are unaffected.
 * Decorative surfaces never convey information or alter accessible content.
 */
.lab-home-v4 {
  --polish-edge: #d6e4ec;
  --polish-ink: #0b1d2d;
  --polish-glow: #1383bc;
  --polish-motion: cubic-bezier(.21,.72,.22,1);
}

/* White cards: editorial depth, soft concentric contours, local pointer light. */
.lab-home-v4 .v4-section:not(.v4-section--dark) .v4-card-grid > article,
.lab-home-v4 .v4-proof-grid > article {
  isolation: isolate;
  border-color: var(--polish-edge);
  border-radius: 8px;
  background: linear-gradient(155deg,#ffffff,#fbfdfe 75%);
  box-shadow: 0 15px 36px -32px #16354e7d, 0 2px 9px #14314a07;
  transition:
    transform 420ms var(--polish-motion),
    border-color 300ms ease,
    background-color 300ms ease,
    box-shadow 420ms var(--polish-motion);
}
.lab-home-v4 .v4-section:not(.v4-section--dark) .v4-card-grid > article::before,
.lab-home-v4 .v4-proof-grid > article::before {
  z-index: 2;
  height: 2px;
  background: linear-gradient(90deg,#327d9d,#94ddeb 65%,transparent);
}
.lab-home-v4 .v4-section:not(.v4-section--dark) .v4-card-grid > article::after,
.lab-home-v4 .v4-proof-grid > article::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background:
    radial-gradient(
      ellipse 18rem 13rem at var(--tile-x,86%) var(--tile-y,12%),
      #4da4c51b 0%, #4da4c508 38%, transparent 76%
    ),
    repeating-radial-gradient(
      ellipse 23rem 18rem at 110% -18%,
      transparent 0 27px, #237fa608 28px 29px
    );
  content:"";
  opacity: .43;
  pointer-events:none;
  transition: opacity 350ms ease,transform 600ms var(--polish-motion);
}
.lab-home-v4 .v4-section:not(.v4-section--dark) .v4-card-grid > article > *,
.lab-home-v4 .v4-proof-grid > article > * {position:relative; z-index:1;}
.lab-home-v4 .v4-section:not(.v4-section--dark) .v4-card-grid > article h3 {
  color:var(--polish-ink);
}
.lab-home-v4 .v4-section:not(.v4-section--dark) .v4-card-grid > article p,
.lab-home-v4 .v4-section:not(.v4-section--dark) .v4-card-grid > article li {
  color:#4d6476;
}

/* Four proof signals: legible two-by-two layout rather than a flat vertical list. */
.lab-home-v4 .v4-proof-section {
  background:
    radial-gradient(ellipse 42rem 30rem at 93% 20%,#e9f5fa85,transparent 77%),
    #fff;
}
.lab-home-v4 .v4-proof-section > .v4-wrap {
  align-items:center;
  gap:44px 68px;
}
.lab-home-v4 .v4-proof-section .v4-section-heading {margin-bottom:0;}
.lab-home-v4 .v4-proof-section .v4-section-heading .v4-lede {
  margin-top:4px;
  max-width:520px;
}
.lab-home-v4 .v4-proof-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:15px;
  background:transparent;
}
.lab-home-v4 .v4-proof-grid > article {
  display:flex;
  min-width:0;
  min-height:220px;
  flex-direction:column;
  align-items:flex-start;
  padding:clamp(22px,2.25vw,30px);
}
.lab-home-v4 .v4-proof-grid > article:nth-child(even) {
  background:linear-gradient(155deg,#fff,#f5fafd);
}
.lab-home-v4 .v4-proof-card .v4-proof-glyph {
  display:grid;
  width:48px;
  height:48px;
  flex:0 0 48px;
  place-items:center;
  border:1px solid #cce1eb;
  border-radius:12px;
  background:#eaf5fa;
  color:#196b93;
  transition:transform 380ms var(--polish-motion),background 300ms,border-color 300ms;
}
.lab-home-v4 .v4-proof-glyph svg {
  width:27px;
  height:27px;
  stroke:currentColor;
}
.lab-home-v4 .v4-proof-grid > article h3 {
  margin:20px 0 9px;
  color:var(--polish-ink);
  font-size:clamp(1.26rem,1.65vw,1.65rem);
  line-height:1.2;
}
.lab-home-v4 .v4-proof-grid > article p {
  margin:0;
  color:#526a7e;
  font-size:.88rem;
  line-height:1.65;
}
.lab-home-v4 .v4-proof-section .v4-wide-note {
  margin-top:4px;
  background:linear-gradient(105deg,#edf6fa,#f8fbfc);
}

/* Accordions: calm, premium interaction without ornamental vertical rules. */
.lab-home-v4 .v4-layers .v4-disclosure,
.lab-home-v4 .v4-faq--polished .v4-disclosure {
  isolation:isolate;
  position:relative;
  overflow:hidden;
  border:1px solid #d9e5ec;
  border-radius:9px;
  background:#fff;
  box-shadow:0 15px 40px -37px #12355073;
  transition:border-color .3s ease,box-shadow .4s var(--polish-motion),transform .35s var(--polish-motion),background .35s ease;
}
.lab-home-v4 .v4-layers .v4-disclosure[open],
.lab-home-v4 .v4-faq--polished .v4-disclosure[open] {
  border-color:#bcd7e6;
  background:linear-gradient(132deg,#fff 20%,#f8fcfe 100%);
  box-shadow:0 22px 48px -38px #0c4b7180,0 0 0 1px #b5dbea44;
}
.lab-home-v4 .v4-layers .v4-disclosure::after,
.lab-home-v4 .v4-faq--polished .v4-disclosure::after {
  position:absolute;
  inset:0;
  z-index:0;
  background:
    radial-gradient(ellipse 24rem 14rem at var(--tile-x,94%) var(--tile-y,0%),
      #7bc2dd23,transparent 76%),
    repeating-radial-gradient(ellipse 26rem 18rem at 120% -30%,
      transparent 0 28px,#1482c409 29px 30px);
  opacity:0;
  pointer-events:none;
  content:"";
  transition:opacity .4s ease;
}
.lab-home-v4 .v4-layers .v4-disclosure[open]::after,
.lab-home-v4 .v4-faq--polished .v4-disclosure[open]::after {
  opacity:.48;
}
.lab-home-v4 .v4-layers .v4-disclosure__button,
.lab-home-v4 .v4-faq--polished .v4-disclosure__button,
.lab-home-v4 .v4-layers .v4-disclosure__panel,
.lab-home-v4 .v4-faq--polished .v4-disclosure__panel {
  position:relative;
  z-index:1;
}
.lab-home-v4 .v4-faq--polished {
  width:min(100%,1040px);
  margin:8px auto 0;
  gap:12px;
}
.lab-home-v4 .v4-faq--polished .v4-disclosure__button {
  min-height:92px;
  padding:23px clamp(23px,3vw,36px);
  gap:22px;
}
.lab-home-v4 .v4-faq--polished .v4-disclosure__button strong {
  color:#0d2940;
  font-size:clamp(1.26rem,1.95vw,1.78rem);
  font-weight:400;
  line-height:1.3;
}
.lab-home-v4 .v4-faq--polished .v4-disclosure__panel {
  max-width:none;
  padding:0 clamp(24px,3vw,36px) 27px;
  border-top:0;
}
.lab-home-v4 .v4-faq--polished .v4-disclosure__panel > p {
  max-width:820px;
  margin:0;
  color:#496174;
  font-size:1rem;
  line-height:1.82;
}
.lab-home-v4 .v4-faq--polished .v4-disclosure[open] .v4-disclosure__panel {
  animation:lab-faq-enter .32s var(--polish-motion) both;
}
@keyframes lab-faq-enter {
  from {opacity:0;transform:translateY(-5px);}
  to {opacity:1;transform:translateY(0);}
}
.lab-home-v4 .v4-faq--polished .v4-disclosure__indicator {
  display:grid;
  width:42px;
  height:42px;
  flex:0 0 42px;
  place-items:center;
  border:1px solid #cbdfe9;
  border-radius:50%;
  background:#f4fafe;
  color:#146c94;
  transition:background .32s ease,border-color .32s ease,color .32s ease,transform .35s var(--polish-motion);
}
.lab-home-v4 .v4-faq--polished .v4-disclosure__indicator::before {
  font-family:Inter,system-ui,sans-serif;
  font-size:1.45rem;
  line-height:1;
}
.lab-home-v4 .v4-faq--polished .v4-disclosure[open] .v4-disclosure__indicator {
  border-color:#0c3450;
  background:#0c3450;
  color:#fff;
  transform:rotate(90deg);
}
.lab-home-v4 #faq {
  background:
    radial-gradient(ellipse 36rem 24rem at 12% 20%,#edf8fb82,transparent 76%),
    linear-gradient(180deg,#f5fafc,#eff7fb);
}
.lab-home-v4 #faq .v4-section-heading {
  width:min(100%,1040px);
  margin-inline:auto;
}
.lab-home-v4 #faq > .v4-wrap > .v4-text-link {
  margin:30px max(0px,calc((100% - 1040px)/2)) 0;
}

/* Department explorer and timeline feel integrated with the same materiality. */
.lab-home-v4 .v4-departments {
  overflow:hidden;
  border:1px solid #d2e3ec;
  border-radius:10px;
  background:#fff;
  box-shadow:0 22px 52px -46px #123e5970;
}
.lab-home-v4 .v4-departments__tabs {
  background:#f7fafc;
}
.lab-home-v4 .v4-departments__tabs button {
  transition:background .23s ease,color .23s ease,transform .25s ease;
}
.lab-home-v4 .v4-departments__tabs button[aria-selected="true"] {
  background:#0b304a;
  color:#fff;
  box-shadow:none;
}
.lab-home-v4 .v4-departments__panels article {
  min-width:0;
  background:
    radial-gradient(ellipse 28rem 20rem at var(--tile-x,90%) var(--tile-y,10%),
      #d6eef64d,transparent 78%),
    #fff;
}
.lab-home-v4 .v4-departments__panels article .v4-note {
  background:#f1f8fb;
  border-color:#dbe9f0;
}
.lab-home-v4 .v4-timeline article {
  margin:0 0 11px 20px;
  padding:22px 26px 23px 35px;
  border:1px solid #dae9f0;
  border-radius:8px;
  background:linear-gradient(105deg,#fff,#f9fcfd);
  box-shadow:0 15px 36px -37px #173e5773;
  transition:background .3s ease,box-shadow .36s ease,transform .36s var(--polish-motion);
}
.lab-home-v4 .v4-timeline article::before {
  left:-28px;
  top:28px;
}
.lab-home-v4 .v4-timeline article h3 {font-size:clamp(1.26rem,1.8vw,1.8rem);}
.lab-home-v4 .v4-timeline article p:last-child {color:#526a7d;}
.lab-home-v4 .v4-service-note {
  background:linear-gradient(115deg,#f9fdffbf,#ffffffc7);
  box-shadow:0 18px 50px -42px #093a5873;
  transition:box-shadow .35s ease,transform .35s ease;
}
.lab-home-v4 .v4-wide-note {
  box-shadow:0 12px 32px -30px #123f5e6a;
}

/* Hover and accessible focus are complementary: no movement is required to read. */
@media(hover:hover) and (pointer:fine) {
  .lab-home-v4 .v4-section:not(.v4-section--dark) .v4-card-grid > article:hover,
  .lab-home-v4 .v4-proof-grid > article:hover {
    transform:translateY(-5px);
    border-color:#9ccbdc;
    box-shadow:0 26px 58px -39px #1451746b,0 9px 24px -16px #17638b25;
  }
  .lab-home-v4 .v4-section:not(.v4-section--dark) .v4-card-grid > article:hover::after,
  .lab-home-v4 .v4-proof-grid > article:hover::after {
    opacity:1;
  }
  .lab-home-v4 .v4-proof-grid > article:hover .v4-proof-glyph {
    transform:translateY(-3px);
    background:#dff2f9;
    border-color:#91c8d9;
  }
  .lab-home-v4 .v4-layers .v4-disclosure:hover,
  .lab-home-v4 .v4-faq--polished .v4-disclosure:hover {
    transform:translateY(-2px);
    border-color:#a8cfe0;
    box-shadow:0 24px 56px -39px #0e456b6e;
  }
  .lab-home-v4 .v4-layers .v4-disclosure:hover::after,
  .lab-home-v4 .v4-faq--polished .v4-disclosure:hover::after {
    opacity:.66;
  }
  .lab-home-v4 .v4-faq--polished .v4-disclosure:hover .v4-disclosure__indicator {
    border-color:#89bdd2;
    background:#eaf6fb;
  }
  .lab-home-v4 .v4-faq--polished .v4-disclosure[open]:hover .v4-disclosure__indicator {
    background:#0c3450;color:#fff;
  }
  .lab-home-v4 .v4-timeline article:hover {
    transform:translateX(3px);
    background:#fff;
    box-shadow:0 20px 44px -34px #1955754a;
  }
  .lab-home-v4 .v4-service-note:hover {
    transform:translateY(-2px);
    box-shadow:0 25px 58px -43px #0d507567;
  }
}

/* Larger type remains readable across tablet and mobile viewports. */
@media(max-width:1120px) {
  .lab-home-v4 .v4-proof-section > .v4-wrap {
    grid-template-columns:1fr;
  }
  .lab-home-v4 .v4-proof-section .v4-section-heading {max-width:900px;}
  .lab-home-v4 .v4-proof-grid > article {min-height:195px;}
}
@media(max-width:680px) {
  .lab-home-v4 .v4-proof-grid {grid-template-columns:1fr;gap:12px;}
  .lab-home-v4 .v4-proof-grid > article {
    min-height:auto;
    padding:23px;
  }
  .lab-home-v4 .v4-proof-grid > article h3 {margin-top:14px;}
  .lab-home-v4 .v4-faq--polished .v4-disclosure__button {
    min-height:76px;padding:20px 19px;gap:16px;
  }
  .lab-home-v4 .v4-faq--polished .v4-disclosure__button strong {
    font-size:1.24rem;
  }
  .lab-home-v4 .v4-faq--polished .v4-disclosure__panel {padding:0 19px 23px;}
  .lab-home-v4 .v4-faq--polished .v4-disclosure__indicator {
    width:34px;height:34px;flex-basis:34px;
  }
  .lab-home-v4 .v4-faq--polished .v4-disclosure__indicator::before {font-size:1.2rem;}
  .lab-home-v4 .v4-timeline article {margin-left:17px;padding:18px 20px 20px 28px;}
  .lab-home-v4 .v4-timeline article::before {left:-25px;}
  .lab-home-v4 #faq > .v4-wrap > .v4-text-link {margin-left:0;margin-right:0;}
}
@media(prefers-reduced-motion:reduce) {
  .lab-home-v4 .v4-section:not(.v4-section--dark) .v4-card-grid > article,
  .lab-home-v4 .v4-proof-grid > article,
  .lab-home-v4 .v4-proof-glyph,
  .lab-home-v4 .v4-disclosure,
  .lab-home-v4 .v4-disclosure__indicator,
  .lab-home-v4 .v4-departments__tabs button,
  .lab-home-v4 .v4-timeline article,
  .lab-home-v4 .v4-service-note {
    transition:none !important;
    animation:none !important;
    transform:none !important;
  }
  .lab-home-v4 .v4-faq--polished .v4-disclosure[open] .v4-disclosure__panel {
    animation:none !important;
  }
}


/* CTA light sweep: directional polish instead of lift or bounce. */
/* Applies to actual CTA surfaces on this homepage, not text links or cards. */
.lab-home-v4 .v4-button {
  --cta-sheen: rgba(255,255,255,.29);
  --cta-sheen-soft: rgba(255,255,255,.075);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 6px 16px -13px rgba(9,32,52,.7);
  transform: none;
  transition: box-shadow 300ms ease, border-color 300ms ease, background-color 300ms ease;
}

/* Keep the secondary button recognisably outlined, with a blue rather than white reflection. */
.lab-home-v4 .v4-button--secondary,
.lab-home-v4 .v4-final-cta .v4-button {
  --cta-sheen: rgba(20,130,196,.23);
  --cta-sheen-soft: rgba(20,130,196,.06);
}

.lab-home-v4 .v4-button::before {
  position: absolute;
  top: -40%;
  bottom: -40%;
  left: -72%;
  z-index: 1;
  width: 52%;
  background: linear-gradient(
    106deg,
    transparent 0%,
    var(--cta-sheen-soft) 33%,
    var(--cta-sheen) 50%,
    var(--cta-sheen-soft) 67%,
    transparent 100%
  );
  content: "";
  pointer-events: none;
  transform: translateX(-30%) skewX(-18deg);
  /* No transition here: leaving the button must not produce a reverse sweep. */
}
.lab-home-v4 .v4-button > span {
  position: relative;
  z-index: 2;
  display: inline-block;
  transition: transform 300ms ease;
}

/* A light pass is triggered once on hover or keyboard focus, with no infinite animation. */
@media (hover: hover) and (pointer: fine) {
  .lab-home-v4 .v4-button:hover {
    transform: none;
    box-shadow: 0 12px 30px -20px rgba(10,43,67,.5),
                inset 0 0 0 1px rgba(255,255,255,.17);
  }
  .lab-home-v4 .v4-button:hover::before {
    transform: translateX(390%) skewX(-18deg);
    transition: transform 770ms cubic-bezier(.2,.7,.2,1);
  }
  .lab-home-v4 .v4-button:hover > span {
    transform: translateX(2px);
  }
}
.lab-home-v4 .v4-button:focus-visible {
  transform: none;
  box-shadow: 0 10px 28px -21px rgba(10,43,67,.5);
  outline: 3px solid #1482c4;
  outline-offset: 4px;
}
.lab-home-v4 .v4-button:focus-visible::before {
  transform: translateX(390%) skewX(-18deg);
  transition: transform 770ms cubic-bezier(.2,.7,.2,1);
}
.lab-home-v4 .v4-button:active,
.lab-home-v4 .v4-button:hover:active {
  transform: none;
  box-shadow: inset 0 2px 6px rgba(0,0,0,.14);
}
@media (prefers-reduced-motion: reduce) {
  .lab-home-v4 .v4-button,
  .lab-home-v4 .v4-button::before,
  .lab-home-v4 .v4-button > span {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }
  /* Retain contrast, hover affordance and visible keyboard focus without a moving sweep. */
  .lab-home-v4 .v4-button::before {
    opacity: 0;
  }
}
