/* Solutions pages — Citrix, Finance and banking, Government, Legal.
   Shared page-level layout for the four "Notate — <solution>" Figma frames (1440 wide).
   Prefix: .ind-  (shared/global tokens + components live in css/styles.css) */

/* ---------- Product hero ---------- */
.ind-hero { position: relative; isolation: isolate; overflow: hidden; min-height: clamp(760px, 64.514vw, 929px); background: #fff; }
.ind-hero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.ind-hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 85% 50%; animation: indHeroIn 1.8s var(--ease-out) both; }
@keyframes indHeroIn { from { transform: scale(1.06); opacity: 0; filter: blur(6px); } to { transform: none; opacity: 1; filter: none; } }
.ind-hero__copy {
  /* --top = Figma offset of the copy block inside the 929px hero */
  padding: clamp(56px, calc(var(--top, 140) * 100vw / 1440), calc(var(--top, 140) * 1px)) 0 72px;
  width: min(520px, 40vw);
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.ind-hero__copy .lead { font-size: 18px; width: min(478px, 100%); }
.ind-hero__copy .lead p + p { margin-top: 0; }
.ind-hero__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.ind-hero__btns .btn--primary { width: 186px; }

/* breadcrumb — "Home  /  Solutions  /  Page" */
.ind-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0 calc(2ch + 1.04px); }
.ind-crumbs li { display: inline-flex; align-items: center; gap: calc(2ch + 1.04px); white-space: nowrap; }
.ind-crumbs li + li::before { content: "/"; }
.ind-crumbs a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: color .25s, background-size .45s var(--ease-out); }
.ind-crumbs a:hover { color: var(--accent); background-size: 100% 1px; }

/* ---------- Shared section rhythm ---------- */
.ind-section { position: relative; isolation: isolate; padding: 96px 0; }
.ind-section__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.ind-section__bg img { position: absolute; left: 0; top: -4%; width: 100%; height: 108%; object-fit: cover; will-change: transform; }
.ind-stack { display: flex; flex-direction: column; align-items: center; gap: 64px; }
.ind-stack > .ind-grid, .ind-stack > .ind-two { width: 100%; }

/* ---------- Video card ---------- */
.ind-video { padding-top: 96px; }
.ind-video__card {
  --W: 1152; --H: 648;
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1152 / 648;
  overflow: hidden;
  border-radius: var(--r-xl);
  background: #e6dadb;
  box-shadow: var(--shadow-card);
  container-type: inline-size;
  cursor: pointer;
  transition: transform .8s var(--spring), box-shadow .5s var(--ease-out);
}
.ind-video__card:hover { box-shadow: var(--shadow-card-hover); }
.ind-video__art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: scale .9s var(--ease-out); }
/* art and screen scale together about the card centre (screen origin = card centre in its own box) */
.ind-video__card .ind-screen { transform-origin: calc((576 - var(--l)) / var(--w) * 100%) calc((324 - var(--t)) / var(--h) * 100%); transition: scale .9s var(--ease-out); }
.ind-video__card:hover .ind-video__art, .ind-video__card:hover .ind-screen { scale: 1.03; }
.ind-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 112px;
  height: 112px;
  translate: -50% -50%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  /* rebuilt in CSS: the Figma SVG export relies on a foreignObject backdrop blur */
  background: rgba(255, 255, 255, 0.72);
  border: 1.5px solid #fff;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 32px rgba(13, 26, 43, 0.12);
  transition: transform .6s var(--spring-bouncy), box-shadow .45s var(--ease-out), background-color .3s;
}
.ind-play img { width: 36px; height: 40px; margin-left: 6px; transition: transform .6s var(--spring-bouncy); }
.ind-play::after { content: ""; position: absolute; inset: -1.5px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.9); opacity: 0; pointer-events: none; }
.ind-video__card:hover .ind-play { transform: scale(1.08); background: rgba(255, 255, 255, 0.86); box-shadow: 0 18px 44px rgba(13, 26, 43, 0.2); }
.ind-video__card:hover .ind-play::after { animation: indPulse 1.6s var(--ease-out) infinite; }
.ind-video__card:active .ind-play { transform: scale(0.96); transition-duration: .18s; }
@keyframes indPulse { from { transform: scale(1); opacity: .9; } to { transform: scale(1.45); opacity: 0; } }

/* device screens placed on a scene by Figma px (--l/--t/--w/--h/--r) over the scene's --W/--H */
.ind-screen {
  position: absolute;
  left: calc(var(--l) / var(--W) * 100%);
  top: calc(var(--t) / var(--H) * 100%);
  width: calc(var(--w) / var(--W) * 100%);
  height: calc(var(--h) / var(--H) * 100%);
  border-radius: calc(var(--r) / var(--W) * 100cqw);
  overflow: hidden;
  background: #fff;
}
.ind-screen img { position: absolute; top: 0; max-width: none; }

/* video plays in place (js/pages/industry.js): the player takes the card's frame */
.ind-video__frame { position: relative; }
.ind-player { position: absolute; inset: 0; overflow: hidden; border-radius: var(--r-xl); background: #000; box-shadow: var(--shadow-card); animation: indPlayerIn .45s var(--ease-out) both; }
.ind-player iframe { display: block; width: 100%; height: 100%; border: 0; }
.ind-video__frame.is-playing .ind-video__card { visibility: hidden; }
@keyframes indPlayerIn { from { opacity: 0; } to { opacity: 1; } }

.ind-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(var(--card-h, auto), auto); gap: 20px; }
.ind-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ind-card { padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.ind-card > div { display: flex; flex-direction: column; gap: 8px; }
.ind-card .eyebrow { color: var(--accent); }
.ind-card .title-sm { transition: color .25s; }
/* 88px icon cropped from a 3×3 Figma sprite (--x/--y offsets and --s size in %) */
.ind-icon { position: relative; display: block; flex: none; overflow: hidden; }
.ind-icon img { position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); max-width: none; }
.ind-more { align-self: center; }

/* ---------- Checklist + art two-up ---------- */
.ind-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.ind-panel { background: #fff; border-radius: var(--r-xl); filter: drop-shadow(0 8px 12px rgba(12, 26, 43, 0.06)); }
.ind-check { padding: 32px 32px 40px; display: flex; flex-direction: column; gap: 28px; }
.ind-check__head { display: flex; flex-direction: column; gap: 16px; }
.ind-check__list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
}
.ind-check__list li img { flex: none; width: 28px; height: 28px; transition: transform .6s var(--spring-bouncy); }
.ind-check__list li span { flex: 1 1 0; min-width: 0; transition: transform .6s var(--spring); }
.ind-check__list li strong { display: block; font-weight: 700; }

/* art keeps the Figma art-box ratio at every width (no cropping of the devices); at 1440 it equals the checklist height */
.ind-art-card { padding: 16px; display: flex; flex-direction: column; align-self: center; }
.ind-art { position: relative; flex: none; aspect-ratio: var(--W) / var(--H); border-radius: var(--r-lg); overflow: hidden; container-type: size; }
/* scene keeps the Figma art box ratio and behaves like object-fit: cover, so screens stay seated in the glass stands */
.ind-scene {
  position: absolute;
  left: 50%;
  top: 50%;
  width: max(100cqw, 100cqh * var(--W) / var(--H));
  aspect-ratio: var(--W) / var(--H);
  translate: -50% -50%;
  container-type: inline-size;
  transition: scale .9s var(--ease-out);
}
.ind-scene > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Callout card ---------- */
.ind-callout { margin-top: 20px; padding: 40px; display: flex; align-items: center; gap: 32px; }
.ind-callout > div { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.ind-callout .body-lg { color: var(--ink-2); }
.ind-callout .btn { margin-top: 8px; }

/* ---------- FAQ ---------- */
.ind-faq .acc { width: min(760px, 100%); margin-inline: auto; }

/* ---------- Responsive (desktop & tablet) ---------- */
@media (max-width: 1180px) {
  /* copy starts to overlap the scene: soft wash keeps it legible */
  .ind-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(253, 248, 242, 0.94) 0%, rgba(253, 248, 242, 0.8) 36%, rgba(253, 248, 242, 0) 56%); pointer-events: none; }
  .ind-card { padding: 28px; }
  .ind-callout { padding: 32px; }
}
@media (max-width: 1024px) {
  .ind-hero__copy { width: min(480px, 46vw); }
  .ind-check { padding: 28px 28px 32px; }
}
/* ---------- Tablet (≤ 1023px): hero stacks (copy, then artwork), two-up stacks, 2-column cards ----------
   (stacking itself comes from the shared .fig-hero rules in styles.css) */
@media (max-width: 1023px) {
  .ind-hero__bg::after { content: none; }
  .ind-hero.fig-hero.fig-hero .ind-hero__copy { width: 100%; max-width: 640px; padding: 64px 0 32px; gap: 24px; }
  /* breadcrumb items and the "more" link get a comfortable hit area; underline stays on the text */
  .ind-crumbs li :is(a, .crumb-menu) { padding-block: 2px; background-position: 0 calc(100% - 2px); }
  .ind-more { padding-block: 10px; background-position: 0 calc(100% - 10px); }

  .ind-section { padding: 80px 0; }
  .ind-stack { gap: 48px; }
  .ind-video { padding-top: 80px; }
  .ind-video__card .ind-play { width: clamp(64px, 13cqw, 112px); height: clamp(64px, 13cqw, 112px); }
  .ind-play img { width: 32%; height: auto; margin-left: 5%; }

  .ind-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; }
  .ind-two { grid-template-columns: 1fr; }
  .ind-art-card { width: min(100%, 560px); justify-self: center; }
  .ind-callout { align-items: flex-start; }
}

/* Tablet only (768–1023): artwork under the copy at 16:9. Phones use the shared phone hero (styles.css). */
@media (min-width: 768px) and (max-width: 1023px) {
  .ind-hero.fig-hero.fig-hero > .ind-hero__bg { aspect-ratio: 16 / 9; }
  .ind-hero.fig-hero.fig-hero > .ind-hero__bg img { object-position: 50% 40%; }
}

/* ---------- Phone (≤ 767px): single column; hero artwork on top (shared phone hero) ---------- */
@media (max-width: 767px) {
  .ind-hero.fig-hero.fig-hero .ind-hero__copy { padding: 0 0 32px; gap: 20px; } /* artwork sits above (shared phone hero) */
  .ind-hero__btns { flex-direction: column; }
  .ind-hero__btns .btn { width: 100%; height: 56px; }

  .ind-section { padding: 64px 0; }
  .ind-stack { gap: 32px; }
  .ind-video { padding-top: 48px; }
  .ind-video__card, .ind-player { border-radius: var(--r-lg); }

  .ind-grid { grid-template-columns: 1fr; gap: 16px; }
  .ind-card { padding: 24px; gap: 16px; }
  .ind-card .ind-icon, .ind-callout .ind-icon { width: 72px; height: 72px; border-radius: var(--r-lg); }

  .ind-two { gap: 16px; }
  .ind-check { padding: 24px 20px 28px; gap: 20px; }
  .ind-check__list li { align-items: flex-start; gap: 14px; padding: 16px 0; font-size: 16px; }
  .ind-check__list li img { width: 24px; height: 24px; margin-top: 1px; }
  .ind-art-card { width: 100%; padding: 12px; }

  .ind-callout { flex-direction: column; margin-top: 16px; padding: 24px; gap: 20px; }
  .ind-callout .body-lg { font-size: 16px; }
  .ind-callout .btn { width: 100%; }
}

/* art card as a single Figma export (Government, Legal) */
.ind-art__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
