/* Stratus theme CSS: generated by tools/build-theme.py from site/css and site/cards. Do not edit. */
/* ---- css/tokens.css ---- */
/* IMS Stratus marketing site - design tokens.
   Everything is scoped under .ims (page) or .ims-app-card (app UI cards) so the
   same CSS can be dropped into a MOBLE CMS page or split into Svelte components
   without colliding with platform/base styles. ASCII only (MOBLE custom.css rule). */

@font-face { font-family: "IMS Inter"; src: url("../fonts/inter-var-latin.woff2") format("woff2"); font-weight: 300 800; font-display: swap; }
@font-face { font-family: "IMS Inter Tight"; src: url("../fonts/inter-tight-var-latin.woff2") format("woff2"); font-weight: 300 800; font-display: swap; }
@font-face { font-family: "IMS Archivo"; src: url("../fonts/archivo-w118-var-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; } /* Archivo pinned at width 118 */
@font-face { font-family: "IMS Geist Mono"; src: url("../fonts/geist-mono-var-latin.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }

:root {
  /* Brand: solid purple = mean of the old #3846B3 -> #625FFD logo gradient */
  --ims-purple-50: #f1f1fd;
  --ims-purple-100: #e4e5fb;
  --ims-purple-200: #c9cbf6;
  --ims-purple-300: #a6a9ef;
  --ims-purple-400: #7c80e5;
  --ims-purple: #4d53d8;
  --ims-purple-600: #3f44bd;
  --ims-purple-700: #33379a;
  --ims-purple-800: #282b78;
  --ims-purple-900: #1e2058;
  --ims-violet: #625ffd;

  /* Accent (Aeline-style chip / primary CTA). Swap here to rebrand. */
  --ims-accent: #dcfb6e;
  --ims-accent-ink: #11130a;

  /* Page neutrals */
  --ims-ink: #0d0e17;
  --ims-ink-2: #2b2d3c;
  --ims-muted: #6a6d80;
  --ims-faint: #868899;
  --ims-line: #e7e7ee;
  --ims-page: #f2f2f6;       /* outer page behind the rounded frames */
  --ims-surface: #ffffff;
  --ims-tile: #f2f2f5;       /* grey bento tile */
  --ims-night: #121320;      /* dark bento tile */

  /* Sky (placeholder clouds until the cloud loop video lands) */
  --ims-sky-top: #5b4fd0;
  --ims-sky-mid: #8f80e6;
  --ims-sky-low: #cfc2f6;
  --ims-sky-haze: #f3edff;

  --ims-font-display: "IMS Archivo", "IMS Inter Tight", "IMS Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ims-font-body: "IMS Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ims-font-mono: "IMS Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --ims-radius-frame: 28px;
  --ims-radius-xl: 28px;
  --ims-radius-lg: 20px;
  --ims-radius-md: 14px;
  --ims-shadow-float: 0 1px 2px rgba(20, 16, 70, .06), 0 12px 32px -8px rgba(30, 24, 110, .28), 0 40px 80px -24px rgba(30, 24, 110, .30);
  --ims-shadow-soft: 0 1px 2px rgba(16, 18, 40, .05), 0 8px 24px -12px rgba(16, 18, 40, .12);
  --ims-ease: cubic-bezier(.22, .8, .24, 1);

  /* App (v2.imsstratus.com.au) tokens: shadcn slate + blue, Inter Variable */
  --ims-app-primary: #2563eb;
  --ims-app-primary-fg: #ffffff;
  --ims-app-fg: #0f172a;
  --ims-app-muted: #f1f5f9;
  --ims-app-muted-fg: #64748b;
  --ims-app-border: #e2e8f0;
  --ims-app-sidebar: #f8fafc;
  --ims-app-radius: 8px;

  /* App status colours (from the live app screenshots) */
  --ims-app-blue-50: #eff6ff;   --ims-app-blue-100: #dbeafe;   --ims-app-blue-600: #2563eb;  --ims-app-blue-700: #1d4ed8;
  --ims-app-green-50: #f0fdf4;  --ims-app-green-100: #dcfce7;  --ims-app-green-500: #22c55e; --ims-app-green-700: #15803d;
  --ims-app-amber-50: #fffbeb;  --ims-app-amber-100: #fef3c7;  --ims-app-amber-500: #f59e0b; --ims-app-amber-700: #b45309;
  --ims-app-red-50: #fef2f2;    --ims-app-red-100: #fee2e2;    --ims-app-red-500: #ef4444;   --ims-app-red-600: #dc2626;
  --ims-app-violet-100: #ede9fe; --ims-app-violet-200: #ddd6fe; --ims-app-violet-600: #7c3aed; --ims-app-violet-700: #6d28d9;
  --ims-app-purple-100: #f3e8ff; --ims-app-purple-700: #7e22ce;
  --ims-app-slate-100: #f1f5f9; --ims-app-slate-200: #e2e8f0;  --ims-app-slate-400: #94a3b8;  --ims-app-slate-500: #64748b; --ims-app-slate-600: #475569;
  --ims-app-pink-500: #ec4899;  --ims-app-emerald-500: #10b981; --ims-app-indigo-500: #6366f1; --ims-app-purple-500: #a855f7;
}

/* ---------------------------------------------------------------------------
   App UI card frame. Every card is designed on a fixed 480 x 360 artboard and
   scaled by its host with transform: scale(--z) from the top-left; the slot
   (.ims-card-slot) reserves the scaled footprint. Not CSS `zoom`: WebKit (Safari)
   clamps zoomed text to its 9px minimum logical font size while line-heights
   keep shrinking, so at --z ~.47 the card text overlapped. A transform scales
   the laid-out card, so text is always laid out at its design size.
   Card internals live in cards/<id>.css, all selectors prefixed .ims-app-card--<id>.
--------------------------------------------------------------------------- */
.ims-app-card {
  position: relative;
  width: 480px;
  height: 360px;
  overflow: hidden;
  background: #fff;
  border-radius: 16px;
  color: var(--ims-app-fg);
  font-family: var(--ims-font-body);
  font-size: 12px;
  line-height: 1.35;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-align: left;
  letter-spacing: 0;
  transform: scale(var(--z, 1));
  transform-origin: 0 0;
}
.ims-app-card *, .ims-app-card *::before, .ims-app-card *::after { box-sizing: border-box; margin: 0; padding: 0; }
.ims-app-card svg { display: block; flex: none; }
.ims-app-card ul, .ims-app-card ol { list-style: none; }

/* Host slot: reserves the scaled footprint. Set --z on the slot or an ancestor. */
.ims-card-slot { width: calc(480px * var(--z, 1)); height: calc(360px * var(--z, 1)); flex: none; }

/* ---- css/site.css ---- */
/* IMS Stratus marketing page. Scoped .ims-*; ASCII only. Needs tokens.css first. */

/* ---------- base ---------- */
html:has(.ims) { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html:has(.ims) { scroll-behavior: auto; } }
.ims {
  margin: 0;
  background: var(--ims-surface);
  color: var(--ims-ink);
  font-family: var(--ims-font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
.ims *, .ims *::before, .ims *::after { box-sizing: border-box; }
.ims :where(h1, h2, h3, p, ul, ol, figure, blockquote) { margin: 0; }
.ims :where(ul, ol) { padding: 0; list-style: none; }
.ims img { max-width: 100%; display: block; }
.ims :where(a) { color: inherit; }
.ims :where(a, button, summary, input, textarea):focus-visible { outline: 2px solid var(--ims-ink); outline-offset: 2px; box-shadow: 0 0 0 2px #fff; }
.ims-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ims-skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ims-ink); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; }
.ims-skip:focus { top: 16px; }
/* keep anchor targets and focused controls clear of the 72px sticky bar */
.ims-faq, .ims-cta { scroll-margin-top: 48px; }
.ims :where(a, button, summary, input, textarea) { scroll-margin-top: 96px; }

.ims-sheet {
  /* full width: the hero sky runs edge to edge on 2K/4K screens; .ims-wrap caps the reading width */
  margin: 0 auto; /* plain white page: no grey surround, no rounded sheet */
  background: var(--ims-surface);
  position: relative;
  overflow: hidden; overflow: clip; /* clip: contains stray overflow without becoming a scroll container, so the sticky FAQ head works */
}
.ims-wrap { max-width: 1280px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }
.ims-section { padding: clamp(80px, 7.5vw, 112px) 0; }

/* ---------- type ---------- */
.ims-eyebrow {
  display: flex; align-items: center; gap: 12px;
  font: 500 13px/1 var(--ims-font-mono);
  letter-spacing: .2em; text-transform: uppercase; color: var(--ims-ink);
}
/* small cloud before section labels (replaced the square bullet, an Aeline signature, 2026-10-08); mask so it takes the label colour */
.ims-eyebrow::before { content: ""; width: 18px; height: 12px; flex: none; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 16'%3E%3Cpath d='M6.5 16a5.5 5.5 0 0 1-.9-10.93A7 7 0 0 1 19 6.1 5 5 0 0 1 18.5 16z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 16'%3E%3Cpath d='M6.5 16a5.5 5.5 0 0 1-.9-10.93A7 7 0 0 1 19 6.1 5 5 0 0 1 18.5 16z'/%3E%3C/svg%3E") center / contain no-repeat; }
.ims-head--center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.ims-head--center .ims-eyebrow, .ims-about .ims-eyebrow { justify-content: center; }
.ims-h2 {
  margin-top: 22px;
  font: 620 clamp(34px, 4vw, 58px)/1.02 var(--ims-font-display);
  letter-spacing: -.025em; text-wrap: balance;
}
.ims-h2__soft { color: var(--ims-faint); }
.ims-h2--light { color: #fff; }
.ims-h3 { font: 500 clamp(22px, 2vw, 28px)/1.15 var(--ims-font-display); letter-spacing: -.015em; text-wrap: balance; }
.ims-h3--lg { font-size: clamp(30px, 3.2vw, 46px); line-height: 1.06; letter-spacing: -.025em; }
.ims-lede { margin-top: 22px; max-width: 620px; color: var(--ims-muted); font-size: clamp(17px, 1.35vw, 19px); text-wrap: pretty; }
.ims-lede--left { max-width: 520px; }
.ims-lede a { color: var(--ims-ink); text-underline-offset: 3px; }
.ims a[href^="tel:"] { white-space: nowrap; }
.ims-head--center .ims-btn { margin-top: 34px; }

/* ---------- buttons ---------- */
.ims-btn {
  --btn-h: 58px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 16px;
  height: var(--btn-h); padding: 0 30px;
  border: 0; border-radius: 999px; cursor: pointer;
  font: 500 14px/1 var(--ims-font-mono); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  transition: transform .35s var(--ims-ease), background-color .25s, box-shadow .35s var(--ims-ease), color .25s;
}
.ims-btn:hover { transform: translateY(-2px); }
.ims-btn:active { transform: translateY(0); }
.ims-btn--sm { --btn-h: 44px; padding: 0 20px; font-size: 12px; letter-spacing: .14em; }
.ims-btn--block { width: 100%; }
.ims-btn--arrow { padding-right: 7px; }
.ims-btn--block.ims-btn--arrow { padding: 0 30px; }
.ims-btn--block.ims-btn--arrow .ims-btn__arrow { position: absolute; right: 7px; top: 7px; }
.ims-btn__arrow {
  display: grid; place-items: center;
  width: calc(var(--btn-h) - 14px); height: calc(var(--btn-h) - 14px); border-radius: 50%;
  transition: transform .45s var(--ims-ease);
}
.ims-btn:hover .ims-btn__arrow { transform: translate(3px, -3px); }
.ims-btn--accent { background: var(--ims-accent); color: var(--ims-accent-ink); box-shadow: 0 10px 30px -12px rgba(140, 170, 20, .55); }
.ims-btn--dark { background: var(--ims-purple-900); color: var(--ims-accent); } /* dark purple, matches the "Your data" tile (was ink) */
/* 2026-10-08: no filled arrow circle (Aeline's signature); the arrow is a bare glyph in the label colour */
.ims-btn--arrow, .ims-btn--block.ims-btn--arrow { padding-right: 26px; gap: 10px; }
.ims-btn__arrow, .ims-btn--block.ims-btn--arrow .ims-btn__arrow, .ims-hero__ctas .ims-btn--arrow .ims-btn__arrow {
  position: static; width: auto; height: auto; background: none; color: inherit; border-radius: 0;
}
.ims-btn--glass {
  background: rgba(36, 26, 120, .55); color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4);
}
.ims-btn--glass:hover { background: rgba(36, 26, 120, .65); }
/* liquid glass (js/liquid-glass.js): the refracting backdrop is its ::before, so drop our own fill and pass it as the tint */
.ims-btn--glass.liquid-glass { background: none; --lg-tint: rgba(40, 43, 120, .28); --lg-blur: 8px; --lg-radius: 999px; } /* lightly frosted (22px read as too frosted on a small pill) */
.ims-btn--glass.liquid-glass:hover { background: none; --lg-tint: rgba(40, 43, 120, .4); } /* a little purple in the frost keeps the white label readable over the cloud tops */
.ims-form.liquid-glass { background: none; --lg-tint: rgba(255, 255, 255, .12); --lg-blur: 22px; --lg-radius: 30px; } /* frosted: heavy blur, light tint (2026-10-08 reference) */
/* one hairline rim instead of our 1px inset + the glass's 1.5px highlight stacked */
/* liquid-glass.js injects .liquid-glass { transition: scale } after our CSS, which dropped the button's transform
   transition: hover lift jumped instead of easing */
.ims-btn.liquid-glass { transition: transform .35s var(--ims-ease), box-shadow .35s var(--ims-ease), color .25s, scale .25s; }
.ims-form.liquid-glass, .ims-btn--glass.liquid-glass { box-shadow: 0 30px 60px -30px rgba(30, 20, 110, .5); }
.ims-form.liquid-glass::after { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55), inset 0 0 30px rgba(255, 255, 255, .1); }
.ims-btn--glass.liquid-glass::after { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55), inset 0 0 18px rgba(255, 255, 255, .1); }
.ims-btn--outline { background: #fff; color: var(--ims-ink); box-shadow: inset 0 0 0 1px var(--ims-line); }
.ims-btn--outline:hover { box-shadow: inset 0 0 0 1px var(--ims-ink); }
.ims-link-mono { font: 500 12px/1 var(--ims-font-mono); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; padding: 10px 4px; }
.ims-link-mono:hover { text-decoration: underline; text-underline-offset: 5px; }
.ims-link-mono--light { color: #fff; }

/* ---------- sky + clouds (placeholder until the cloud loop video is supplied) ---------- */
.ims-sky, .ims-cta__sky, .ims-tile__sky, .ims-plan__sky, .ims-feature__sky { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
/* hero sky = cloud loop video. Order inside .ims-sky: video (z1, fades in once playing) > poster still (first frame)
   > CSS placeholder (only when data-sky-video="off") > tint + shade (z2). */
.ims-sky { container-type: size; } /* also a stacking context, so the tint's blend mode only mixes with the sky */
.ims-sky__media { position: absolute; inset: 0; width: 100%; height: 100%; }
/* no fade: a cross-fade from the still to the video showed any colour difference as a flicker. The still is rendered
   by Chrome from the video's own first frame, so the cut is invisible. */
.ims-sky__video { z-index: 1; object-fit: cover; opacity: 0; }
.ims-sky.is-playing .ims-sky__video { opacity: 1; }
.ims-sky__poster { display: none; background: var(--ims-sky-top) var(--ims-hero-poster, none) center / cover no-repeat; }
.ims-sky__video[data-sky-video="on"] ~ .ims-sky__poster { display: block; }
.ims-sky__video[data-sky-video="on"] ~ .ims-sky__placeholder { display: none; }
@media (max-width: 700px) { .ims-sky__poster { background-image: var(--ims-hero-poster-portrait, none); } }
/* "cover" with a focal line: the video's cloud tops (--sky-c of the frame height; 0.64 for the 2026-10-07 loop, measured
   0.62-0.69 across frames) land at --sky-line of the container at any aspect ratio, so sky sits behind the copy and
   clouds along the bottom. Wide screens use the 10:9 frame (height .9w): w >= line / (.9c) * H keeps the top covered.
   Phones use the 5:9 centre crop, sized on height: h >= line / c * H and >= 9/5 W. */
.ims-sky { --sky-c: .64; --sky-line: .72; }
@supports (width: 1cqw) {
  .ims-sky__media {
    --vw: max(100cqw, calc(var(--sky-line) / (.9 * var(--sky-c)) * 100cqh));
    inset: auto; left: 50%; translate: -50% 0;
    bottom: calc((1 - var(--sky-line)) * 100cqh - .9 * (1 - var(--sky-c)) * var(--vw));
    width: var(--vw); height: auto; aspect-ratio: 10 / 9;
  }
  @media (max-width: 700px) {
    .ims-sky { --sky-line: .8; }
    .ims-sky__media {
      --vh: max(calc(var(--sky-line) / var(--sky-c) * 100cqh), 180cqw);
      width: auto; height: var(--vh); aspect-ratio: 5 / 9;
      bottom: calc((1 - var(--sky-line)) * 100cqh - (1 - var(--sky-c)) * var(--vh));
    }
  }
}
/* (a mix-blend-mode tint layer used to sit here; removed 2026-10-07: blending over a playing video re-composites the
   whole hero every frame, lagged in Chrome and flickered in Safari. The purple-800 shade alone keeps colour + contrast.) */
.ims-sky__placeholder, .ims-cta__sky {
  position: absolute; inset: 0;
  background:
    radial-gradient(40% 35% at 78% 18%, rgba(255, 236, 255, .55), rgba(255, 236, 255, 0) 70%),
    radial-gradient(60% 50% at 15% 10%, rgba(120, 100, 240, .45), rgba(120, 100, 240, 0) 70%),
    linear-gradient(180deg, var(--ims-sky-top) 0%, #6d5edb 26%, var(--ims-sky-mid) 50%, var(--ims-sky-low) 76%, var(--ims-sky-haze) 100%);
}
/* deep brand purple (--ims-purple-800) over the sky: pulls the video toward the theme and keeps the hero copy >= 4.5:1
   (measured against Chrome's own render of the first frame, 2026-10-07); clears by 78% so the clouds stay white */
.ims-sky__gl { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; display: block; }
.ims-sky.has-gl .ims-sky__placeholder, .ims-cta__sky.has-gl .ims-clouds { display: none; }
.ims-sky.has-gl ~ .ims-fog::after { opacity: .3; }
.ims-sky.has-gl ~ .ims-fog .ims-clouds--front { display: none; }
.ims-sky__shade { position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg, rgba(40, 43, 120, .6) 0%, rgba(40, 43, 120, .55) 35%, rgba(40, 43, 120, .45) 48%, rgba(40, 43, 120, 0) 62%); /* clears by 62% (was 78%) so the cloud layer stays white */ pointer-events: none; }

.ims-clouds {
  position: absolute; left: 0; width: max(200%, 1600px); /* tiles stay wide (flat bands) on narrow screens; the drift still moves exactly one tile */
  background-repeat: repeat-x; background-size: 50% 100%;
  will-change: transform;
  animation: ims-drift var(--drift, 90s) linear infinite;
}
/* flat, layered "stratus" bands: wide shallow ellipses, each layer drifting at its own speed */
.ims-clouds--far {
  --drift: 190s; bottom: 22%; height: clamp(70px, 9vw, 190px); opacity: .55;
  background-image:
    radial-gradient(ellipse 17% 34% at 20% 56%, #f3eeff 0 22%, rgba(243, 238, 255, 0) 72%),
    radial-gradient(ellipse 12% 26% at 46% 38%, #f6f2ff 0 22%, rgba(246, 242, 255, 0) 72%),
    radial-gradient(ellipse 17% 32% at 73% 62%, #efe9ff 0 22%, rgba(239, 233, 255, 0) 72%);
}
.ims-clouds--mid {
  --drift: 130s; bottom: 15%; height: clamp(90px, 13vw, 270px); opacity: .82;
  background-image:
    radial-gradient(ellipse 18% 32% at 19% 62%, #fbf9ff 0 24%, rgba(251, 249, 255, 0) 72%),
    radial-gradient(ellipse 13% 24% at 43% 42%, #ffffff 0 24%, rgba(255, 255, 255, 0) 72%),
    radial-gradient(ellipse 17% 30% at 66% 66%, #f8f5ff 0 24%, rgba(248, 245, 255, 0) 72%),
    radial-gradient(ellipse 10% 22% at 87% 46%, #ffffff 0 24%, rgba(255, 255, 255, 0) 72%);
}
.ims-clouds--near {
  --drift: 84s; bottom: -2%; height: clamp(110px, 17vw, 350px);
  background-image:
    radial-gradient(ellipse 18% 36% at 16% 58%, #ffffff 0 26%, rgba(255, 255, 255, 0) 72%),
    radial-gradient(ellipse 15% 28% at 41% 72%, #fdfbff 0 26%, rgba(253, 251, 255, 0) 72%),
    radial-gradient(ellipse 19% 40% at 64% 54%, #ffffff 0 26%, rgba(255, 255, 255, 0) 72%),
    radial-gradient(ellipse 12% 28% at 86% 70%, #fdfbff 0 26%, rgba(253, 251, 255, 0) 72%),
    linear-gradient(180deg, rgba(255, 255, 255, 0) 55%, rgba(255, 255, 255, .85) 100%);
}
/* fog in FRONT of the card arc: the cards rise out of the cloud layer */
.ims-fog { position: absolute; left: 0; right: 0; bottom: 0; height: 24%; z-index: 3; pointer-events: none; overflow: hidden; }
.ims-fog::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(207, 194, 246, 0) 20%, rgba(214, 204, 248, .75) 70%, #d9cff7 100%); transition: opacity 1.2s ease; }
.ims-clouds--front {
  --drift: 56s; bottom: 0; height: 100%; transition: opacity 1.2s ease;
  background-image:
    radial-gradient(ellipse 20% 34% at 22% 50%, #ffffff 0 28%, rgba(255, 255, 255, 0) 72%),
    radial-gradient(ellipse 14% 26% at 47% 64%, #ffffff 0 28%, rgba(255, 255, 255, 0) 72%),
    radial-gradient(ellipse 18% 32% at 71% 46%, #ffffff 0 28%, rgba(255, 255, 255, 0) 72%),
    radial-gradient(ellipse 10% 24% at 88% 62%, #ffffff 0 28%, rgba(255, 255, 255, 0) 72%);
}
/* once the real cloud loop plays, let it show through the fog */
.ims-sky.has-video ~ .ims-fog::after { opacity: .3; }
.ims-sky.has-video ~ .ims-fog .ims-clouds--front { display: none; } /* stop the hidden drift animation too */
@keyframes ims-drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
@media (prefers-reduced-motion: reduce) { .ims-clouds { animation: none; } }

/* ---------- hero ---------- */
.ims-hero-frame { padding: 12px; }
.ims-hero {
  position: relative; isolation: isolate;
  display: flex; flex-direction: column;
  min-height: clamp(600px, calc(100svh - 24px), 1040px);
  padding-top: 84px; /* the nav sits over the hero (absolute, outside it for the banner landmark) */
  border-radius: 22px; overflow: hidden;
  color: #fff; background: var(--ims-sky-top);
}
.ims-nav {
  position: absolute; top: 12px; left: 12px; right: 12px; z-index: 5; color: #fff;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  padding: 20px clamp(20px, 3.4vw, 48px);
}
.ims-logo { display: inline-flex; align-items: baseline; gap: .28em; text-decoration: none; color: inherit; font: 620 1em/1 var(--ims-font-display); letter-spacing: -.02em; }
.ims-logo img { height: .715em; width: auto; display: block; } /* lockup SVG: mark + rounded wordmark, 443 units tall on a 425 cap */
.ims-nav .ims-logo { font-size: 26px; color: #fff; } /* 2026-10-14: 20% smaller (was 32px) */
@media (max-width: 900px) { .ims-nav .ims-logo { font-size: 19px; } .ims-stickybar .ims-logo { font-size: 20px; } .ims-footer__brand .ims-logo { font-size: 26px; } }
.ims-nav__links { display: flex; gap: clamp(20px, 2.6vw, 44px); }
.ims-nav__links a {
  font: 500 13px/1 var(--ims-font-mono); letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255, 255, 255, .92); text-decoration: none; padding: 8px 0; position: relative;
}
.ims-nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ims-ease); }
.ims-nav__links a:hover::after { transform: scaleX(1); }
.ims-nav__login-m { display: none; }
.ims-nav__cta { display: flex; align-items: center; justify-content: flex-end; gap: 18px; }
.ims-nav__toggle { display: none; }

.ims-hero__copy { position: relative; z-index: 4; text-align: center; padding: clamp(12px, 3.5vh, 56px) 20px 0; }
.ims-pill-glass {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 5px 16px 5px 5px; border-radius: 999px;
  font: 500 12px/1 var(--ims-font-mono); letter-spacing: .16em; text-transform: uppercase;
  background: rgba(36, 26, 120, .42); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3);
}
/* original globe + ISO mark (not the ISO organisation's trademarked logo): letters knock out the globe lines */
.ims-iso { width: 28px; height: 28px; flex: none; display: block; }
.ims-iso__bg { fill: var(--ims-accent); }
.ims-iso__globe { fill: none; stroke: var(--ims-ink); stroke-width: 1.2; stroke-opacity: .55; }
.ims-iso__txt { font: 800 9.6px/1 var(--ims-font-display); letter-spacing: 0; fill: var(--ims-ink); stroke: var(--ims-accent); stroke-width: 2.4px; stroke-linejoin: round; paint-order: stroke; }
.ims-hero__title {
  margin-top: 24px;
  font: 620 clamp(40px, min(5.4vw, 10vh), 84px)/.98 var(--ims-font-display);
  letter-spacing: -.032em;
  text-shadow: 0 2px 40px rgba(40, 28, 130, .25);
}
.ims-hero__line { display: block; }
.ims-hero__line--soft { color: #ddd6ff; }
.ims-hero__lede {
  max-width: 760px; margin: 24px auto 0;
  font-size: clamp(16px, 1.35vw, 19px); line-height: 1.55; letter-spacing: -.005em;
  color: #fff; text-wrap: balance;
}
.ims-hero__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 30px; }

/* the floating card arc (positions set per frame by site.js) */
.ims-arc {
  position: relative; z-index: 2;
  --arc-h: calc(clamp(160px, min(28vw, 28vh), 224px) * .75 + 64px); /* mirrors site.js layout(); JS sets the exact value */
  height: var(--arc-h, 300px); margin-top: auto; padding-top: 48px; box-sizing: content-box;
}
@media (min-height: 1000px) {
  .ims-arc { --arc-h: calc(clamp(160px, min(28vw, 28vh), 260px) * .75 + 64px); }
}
.ims-arc__stage { position: absolute; inset: 0; transform-style: preserve-3d; }
.ims-arc__item {
  position: absolute; left: 50%; top: 46%;
  transform-style: preserve-3d; will-change: transform, opacity;
  opacity: 0;
}
.ims-arc .ims-app-card {
  box-shadow: 0 0 0 9px rgba(255, 255, 255, .28), 0 18px 36px -16px rgba(34, 22, 120, .45);
}
.ims-hero__foot {
  position: relative; z-index: 4; text-align: center;
  padding: 10px 20px 26px;
  font: 500 12px/1.4 var(--ims-font-mono); letter-spacing: .16em; text-transform: uppercase;
  color: rgba(40, 32, 110, .8);
}

/* ---------- about + bento ---------- */
.ims-statement {
  max-width: 1040px; margin: 24px auto 0; text-align: center;
  font: 620 clamp(30px, 4.2vw, 60px)/1.1 var(--ims-font-display);
  letter-spacing: -.026em; text-wrap: balance;
}
.ims-statement__soft { color: var(--ims-faint); }
@media (min-width: 901px) { .ims-statement__lead, .ims-statement__soft { display: block; } }
.ims-chip-icon {
  /* middle = centre on the x-height midpoint (an empty inline-grid's own baseline is synthesised from
     the svg's bottom edge, which dropped the chip ~.18em). The lift puts the centre halfway between the
     x-height and cap-height midpoints, the optical centre of a mixed-case line. */
  display: inline-grid; place-items: center; vertical-align: middle; translate: 0 -.045em;
  width: .92em; height: .92em; margin: 0 .06em; border-radius: 50%;
}
.ims-chip-icon svg { width: 48%; height: 48%; }
.ims-chip-icon--purple { background: var(--ims-purple); color: #fff; }
.ims-chip-icon--accent { background: var(--ims-accent); color: var(--ims-ink); }

.ims-bento {
  margin-top: clamp(56px, 7vw, 100px);
  display: grid; grid-template-columns: 1fr 1fr 1fr; grid-template-rows: minmax(300px, auto) minmax(150px, auto); gap: 22px;
}
.ims-tile { position: relative; overflow: hidden; border-radius: 26px; padding: 32px; isolation: isolate; }
.ims-tile--sky { grid-row: span 2; color: var(--ims-ink); display: flex; flex-direction: column; justify-content: space-between; min-height: 480px; }
.ims-tile__sky {
  background:
    radial-gradient(50% 30% at 30% 105%, #fff, rgba(255, 255, 255, 0) 70%),
    radial-gradient(40% 25% at 85% 95%, #faf7ff, rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, var(--ims-sky-top), var(--ims-sky-mid) 55%, var(--ims-sky-low));
  z-index: -1;
}
.ims-tile__mark { width: 56px; height: 56px; }
.ims-tile__inner { background: #fff; border-radius: 20px; padding: 28px; box-shadow: 0 20px 40px -20px rgba(30, 20, 110, .35); }
.ims-tile__num { font: 400 clamp(72px, 7.4vw, 112px)/.9 var(--ims-font-display); letter-spacing: -.025em; display: flex; align-items: flex-start; gap: 10px; }
.ims-tile__num span { font: 500 15px/1 var(--ims-font-mono); letter-spacing: .14em; margin-top: 10px; color: var(--ims-purple); }
.ims-tile__num--md { font-size: clamp(52px, 5vw, 76px); margin-top: 14px; }
.ims-tile__text { margin-top: 18px; font-size: 18px; line-height: 1.45; letter-spacing: -.01em; color: var(--ims-ink-2); }
.ims-tile__label { font-size: 18px; letter-spacing: -.01em; color: var(--ims-ink-2); }
.ims-tile__sub { margin-top: 14px; font-size: 17px; line-height: 1.45; color: var(--ims-ink-2); max-width: 380px; text-wrap: pretty; }
.ims-tile--grey { grid-row: span 2; background: var(--ims-tile); display: flex; flex-direction: column; }
.ims-tile--grey .ims-tile__sub { color: var(--ims-muted); }
.ims-pdca-row { display: flex; margin-top: auto; padding-top: 32px; }
.ims-pdca-row li {
  width: 54px; height: 54px; margin-right: -10px; border-radius: 50%;
  display: grid; place-items: center; border: 3px solid var(--ims-tile);
  font: 600 18px/1 var(--ims-font-display); color: #fff; background: var(--ims-purple);
}
.ims-pdca-row li:nth-child(2) { background: var(--ims-purple-700); }
.ims-pdca-row li:nth-child(3) { background: var(--ims-violet); }
.ims-pdca-row li:nth-child(4) { background: var(--ims-accent); color: var(--ims-ink); }
.ims-tile--accent { background: var(--ims-accent); color: var(--ims-accent-ink); display: flex; flex-direction: column; }
.ims-tile--accent .ims-tile__sub { margin-top: auto; padding-top: 14px; }
.ims-tile--accent .ims-tile__sub, .ims-tile--accent .ims-tile__label { color: var(--ims-accent-ink); }
.ims-tile--night { background: var(--ims-purple-900); color: #fff; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.ims-tile--night .ims-tile__label { color: rgba(255, 255, 255, .6); }
.ims-tile--night .ims-tile__big span { color: var(--ims-purple-300); }
.ims-tile__big { font: 500 clamp(26px, 2.4vw, 34px)/1.12 var(--ims-font-display); letter-spacing: -.02em; }
.ims-tile__big span { color: rgba(255, 255, 255, .55); }

/* ---------- product film (2026-10-20): between the about statement and the bento, after the urbanprospects.com.au demo player.
   Markup in the page body is a plain <video> inside .ims-film__player[data-film]; js/film.js adds the badge, the controls and
   HLS (hls.js light from cdnjs, native on Safari), plays a muted loop while in view and restarts with sound on click. ---------- */
.ims-film { margin-top: clamp(40px, 5vw, 72px); }
.ims-film + .ims-bento { margin-top: 22px; }
.ims-film__player {
  position: relative; width: 100%; aspect-ratio: 1920 / 948; overflow: hidden; isolation: isolate; /* the v2 ladder is cut to 1920x948 (letterbox removed) */
  border-radius: 26px; background: #fff; box-shadow: var(--ims-shadow-soft);
  color: #fff; -webkit-tap-highlight-color: transparent;
}
.ims-film__player:focus-visible { outline: 3px solid color-mix(in srgb, var(--ims-purple) 55%, transparent); outline-offset: 3px; }
.ims-film__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #fff; }
.ims-film__hit { position: absolute; inset: 0; z-index: 3; cursor: pointer; background: transparent; border: 0; padding: 0; }
.ims-film__badge {
  position: absolute; top: 50%; left: 50%; z-index: 6; transform: translate(-50%, -50%);
  display: grid; place-items: center; width: 84px; height: 84px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--ims-accent); color: var(--ims-accent-ink);
  box-shadow: 0 16px 40px -14px color-mix(in srgb, var(--ims-accent) 70%, transparent), 0 6px 18px -6px rgba(13, 14, 23, .35);
  transition: transform .25s var(--ims-ease), opacity .25s, background-color .2s;
}
.ims-film__badge:hover:not(.is-gone) { background: #cdf04f; transform: translate(-50%, -50%) scale(1.06); }
.ims-film__badge.is-gone { opacity: 0; pointer-events: none; transform: translate(-50%, -50%) scale(.86); }
.ims-film__badge svg { width: 46px; height: 46px; fill: currentColor; }
.ims-film__spinner { position: absolute; top: 50%; left: 50%; z-index: 4; width: 42px; height: 42px; margin: -21px 0 0 -21px; border-radius: 999px;
  border: 3px solid rgba(255, 255, 255, .25); border-top-color: #fff; animation: ims-film-spin .8s linear infinite; pointer-events: none; display: none; }
.ims-film__player.is-waiting .ims-film__spinner { display: block; }
@keyframes ims-film-spin { to { transform: rotate(360deg); } }
.ims-film__controls { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; opacity: 0; pointer-events: none; transition: opacity .24s; }
.ims-film__player.is-controls .ims-film__controls { opacity: 1; pointer-events: auto; }
.ims-film__bar { padding: 34px 18px 14px; background: linear-gradient(to top, rgba(8, 8, 18, .78), rgba(8, 8, 18, 0)); }
.ims-film__scrub { position: relative; display: block; width: 100%; height: 20px; cursor: pointer; touch-action: none; user-select: none; }
.ims-film__track { position: absolute; top: 50%; left: 0; width: 100%; height: 3px; transform: translateY(-50%); border-radius: 999px; background: rgba(255, 255, 255, .22); overflow: hidden; transition: height .15s; }
.ims-film__scrub:hover .ims-film__track, .ims-film__scrub.is-active .ims-film__track { height: 5px; }
.ims-film__buffer, .ims-film__fill { position: absolute; top: 0; bottom: 0; left: 0; width: 0; }
.ims-film__buffer { background: rgba(255, 255, 255, .3); }
.ims-film__fill { background: var(--ims-accent); }
.ims-film__thumb { position: absolute; top: 50%; left: 0; width: 13px; height: 13px; border-radius: 999px; background: var(--ims-accent); transform: translate(-50%, -50%) scale(0); transition: transform .15s; }
.ims-film__scrub:hover .ims-film__thumb, .ims-film__scrub.is-active .ims-film__thumb { transform: translate(-50%, -50%) scale(1); }
.ims-film__row { display: flex; align-items: center; gap: 4px; margin-top: 2px; }
.ims-film__grow { flex: 1 1 0; }
.ims-film__time { font: 500 12px/1 var(--ims-font-mono); font-variant-numeric: tabular-nums; opacity: .8; padding: 0 6px; }
.ims-film__btn { display: inline-grid; place-items: center; width: 38px; height: 38px; flex: 0 0 auto; padding: 0; border: 0; border-radius: 999px;
  background: transparent; color: #fff; cursor: pointer; opacity: .78; transition: opacity .16s, background-color .16s; }
.ims-film__btn:hover, .ims-film__btn:focus-visible { opacity: 1; background: rgba(255, 255, 255, .12); }
.ims-film__btn svg { width: 21px; height: 21px; fill: currentColor; }
.ims-film__btn .i-b { display: none; }
.ims-film__btn.is-on .i-a { display: none; }
.ims-film__btn.is-on .i-b { display: block; }
.ims-film__volume { display: flex; align-items: center; }
.ims-film__vol { position: relative; width: 0; height: 30px; opacity: 0; overflow: hidden; cursor: pointer; touch-action: none; transition: width .22s var(--ims-ease), opacity .22s; }
.ims-film__volume:hover .ims-film__vol, .ims-film__volume:focus-within .ims-film__vol { width: 74px; opacity: 1; }
.ims-film__vol-track { position: absolute; top: 50%; left: 6px; right: 6px; height: 3px; transform: translateY(-50%); border-radius: 999px; background: rgba(255, 255, 255, .25); }
.ims-film__vol-fill { position: absolute; top: 0; bottom: 0; left: 0; width: 100%; border-radius: 999px; background: #fff; }
.ims-film__player:fullscreen { border-radius: 0; background: #000; }
.ims-film__player:fullscreen .ims-film__video { object-fit: contain; }
@media (max-width: 640px) {
  .ims-film__player { border-radius: 18px; }
  .ims-film__volume .ims-film__vol, .ims-film__time { display: none; }
  .ims-film__bar { padding: 30px 10px 8px; }
  .ims-film__badge { width: 64px; height: 64px; }
  .ims-film__badge svg { width: 36px; height: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .ims-film__badge, .ims-film__track, .ims-film__thumb, .ims-film__vol { transition: none; }
}

/* ---------- modules (PDCA) ---------- */
.ims-pdca {
  margin-top: clamp(56px, 6vw, 84px);
  display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: auto auto; gap: 16px;
  padding: 16px; border-radius: 34px; background: var(--ims-tile);
}
.ims-pdca__card {
  background: #fff; border-radius: 22px; padding: 30px;
  display: flex; flex-direction: column; justify-content: flex-start; gap: 64px;
  min-height: 300px;
}
.ims-pdca__card--wide { grid-column: span 2; grid-row: span 2; gap: 32px; padding-bottom: 0; overflow: hidden; }
.ims-pdca__card:nth-child(4) { grid-column: 3 / span 2; min-height: 0; flex-direction: row; align-items: flex-end; gap: 32px; }
.ims-pdca__card:nth-child(4) > div { max-width: 460px; }
.ims-pdca__body { display: flex; flex-direction: column; gap: 64px; }
.ims-chip-sq { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: var(--ims-accent); color: var(--ims-ink); flex: none; }
.ims-chip-sq svg { width: 24px; height: 24px; }
.ims-pdca__card:nth-child(4) .ims-chip-sq { align-self: flex-start; }
.ims-pdca__step { font: 500 12px/1 var(--ims-font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ims-purple); margin-bottom: 14px; }
.ims-pdca__text { margin-top: 12px; color: var(--ims-muted); font-size: 16.5px; line-height: 1.5; }
.ims-pdca__visual {
  position: relative; margin: 0 -30px; padding: 28px 28px 0; flex: 1;
  display: flex; align-items: flex-end; justify-content: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), var(--ims-purple-50) 30%, var(--ims-purple-100));
  border-radius: 0 0 22px 22px;
}
.ims-pdca__visual .ims-card-slot { border-radius: 16px 16px 0 0; overflow: hidden; height: calc(300px * var(--z, 1)); }
.ims-pdca__visual .ims-app-card { box-shadow: 0 -10px 40px -12px rgba(50, 40, 160, .28); }

/* ---------- features ---------- */
.ims-feature {
  display: grid; grid-template-columns: 1fr 1.15fr; align-items: center; gap: clamp(40px, 6vw, 96px);
  margin-top: clamp(64px, 8vw, 120px);
}
.ims-feature--flip .ims-feature__copy { order: 2; }
.ims-feature--flip { grid-template-columns: 1.15fr 1fr; }
.ims-feature__tag { display: inline-flex; align-items: center; gap: 10px; font: 500 12px/1 var(--ims-font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ims-purple); margin-bottom: 18px; }
.ims-feature__tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.ims-feature__text { margin-top: 20px; color: var(--ims-muted); font-size: 18px; line-height: 1.55; max-width: 500px; }
.ims-ticks { margin-top: 28px; display: grid; gap: 12px; }
.ims-ticks li { position: relative; padding-left: 34px; font-size: 16.5px; color: var(--ims-ink-2); }
.ims-ticks li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--ims-purple-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234d53d8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.ims-feature__stage {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: 30px; aspect-ratio: 6 / 5;
  display: grid; place-items: center; padding: 8%;
}
.ims-feature__sky {
  z-index: -1;
  background:
    radial-gradient(60% 32% at 25% 100%, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 70%),
    radial-gradient(50% 28% at 85% 96%, rgba(250, 247, 255, .9), rgba(255, 255, 255, 0) 70%),
    radial-gradient(40% 30% at 80% 12%, rgba(255, 236, 255, .5), rgba(255, 236, 255, 0) 70%),
    linear-gradient(180deg, var(--ims-sky-top), var(--ims-sky-mid) 58%, var(--ims-sky-low));
}
.ims-feature__sky--dusk { background:
    radial-gradient(60% 30% at 70% 100%, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 70%),
    radial-gradient(45% 26% at 12% 94%, rgba(250, 247, 255, .9), rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, #3f37a8, #7a64d8 50%, #c8b4f2); }
.ims-feature__sky--dawn { background:
    radial-gradient(55% 30% at 40% 102%, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 70%),
    radial-gradient(50% 40% at 90% 10%, rgba(255, 228, 246, .65), rgba(255, 228, 246, 0) 70%),
    linear-gradient(180deg, #5a4fd2, #9b88ea 55%, #e2d6fb); }
.ims-feature__card { position: relative; z-index: 1; transform: rotate(-1.5deg); animation: ims-float 9s ease-in-out infinite; }
.ims-feature--flip .ims-feature__card { transform: rotate(1.5deg); animation-delay: -3s; }
.ims-feature__card .ims-app-card { box-shadow: 0 0 0 10px rgba(255, 255, 255, .3), 0 40px 80px -30px rgba(30, 20, 110, .6); }
@keyframes ims-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.ims-feature__card { animation-play-state: paused; }                 /* only float while on screen (site.js) */
.ims-feature.is-onscreen .ims-feature__card { animation-play-state: running; }
@media (prefers-reduced-motion: reduce) { .ims-feature__card { animation: none; } }
/* 2026-10-14: a feature card can carry a lazy video loop (site.js initLazyVideo). The HTML app card stays as the
   placeholder; the video sits exactly over it (same scaled footprint, same 16px*z radius) and fades in once it plays.
   2026-10-15: v2 loop (16:9, no app sidebar) is anchored left so the Tasks title + OPEN column / task list stay in frame. */
.ims-feature__video {
  position: absolute; inset: -3px; z-index: 2; width: calc(100% + 6px); height: calc(100% + 6px);
  object-fit: cover; object-position: 0% 50%; background: #fff;
  /* 2026-10-15: the screen recordings carry a 1px dark/grey edge; the box overhangs 3px and clip-path trims it */
  clip-path: inset(3px round calc(16px * var(--z, 1)));
  opacity: 0; transition: opacity .6s ease; pointer-events: none;
}
.ims-feature__video.is-playing { opacity: 1; }
/* 2026-10-15: once the loop is playing (it only loads near the viewport) the tilted card settles back to 0deg */
.ims-feature__card { transition: transform .9s cubic-bezier(.22, 1, .36, 1); }
.ims-feature__card:has(> .ims-feature__video.is-playing) { transform: rotate(0deg); }
@media (prefers-reduced-motion: reduce) { .ims-feature__video { display: none; } }

.ims-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: clamp(64px, 8vw, 120px); }
.ims-duo__tile { background: var(--ims-tile); border-radius: 30px; padding: 16px 16px 34px; }
.ims-duo__stage {
  border-radius: 22px; overflow: hidden; margin-bottom: 28px; padding: 32px 32px 0;
  display: flex; justify-content: center; align-items: flex-end;
  background: linear-gradient(180deg, var(--ims-purple-50), var(--ims-purple-100));
}
.ims-duo__stage .ims-card-slot { height: calc(320px * var(--z, 1)); border-radius: 16px 16px 0 0; overflow: hidden; }
.ims-duo__stage .ims-app-card { box-shadow: 0 -10px 40px -14px rgba(50, 40, 160, .3); }
/* 2026-10-15: duo tiles (Calendar, Projects) and the PDCA Plan visual (Compliance) carry a feature video loop too; it sits over the app card inside the
   clipped slot, anchored top-left so the app header stays in frame. */
.ims-duo__stage .ims-card-slot, .ims-pdca__visual .ims-card-slot { position: relative; }
.ims-duo__stage .ims-feature__video, .ims-pdca__visual .ims-feature__video { object-position: 0% 0%; clip-path: inset(3px); }
/* the PDCA Plan loop shows the whole frame: its slot takes the video's 16:9 shape and the video is contained */
.ims-pdca__visual .ims-card-slot:has(> .ims-feature__video) { height: auto; aspect-ratio: 16 / 9; }
.ims-pdca__visual .ims-feature__video { object-fit: contain; object-position: 50% 50%; }
.ims-duo__tile .ims-feature__tag, .ims-duo__tile .ims-h3 { margin-left: 18px; margin-right: 18px; }
.ims-duo__tile .ims-feature__tag { margin-bottom: 12px; }

/* ---------- industries ---------- */
.ims-industries .ims-head { display: grid; grid-template-columns: 1fr 1fr; align-items: end; column-gap: 48px; }
.ims-industries .ims-head .ims-eyebrow { grid-column: 1 / -1; }
.ims-industries .ims-lede { margin-top: 0; justify-self: end; }
.ims-inds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: clamp(48px, 6vw, 72px); }
.ims-ind {
  display: flex; flex-direction: column; gap: 16px; min-height: 380px;
  padding: 32px; border-radius: 26px; background: var(--ims-tile);
}
.ims-ind__std { align-self: flex-start; padding: 8px 12px; border-radius: 999px; background: #fff; font: 500 12px/1 var(--ims-font-mono); letter-spacing: .14em; color: var(--ims-purple); }
.ims-ind .ims-h3 { margin-top: 28px; }
@media (min-width: 1101px) { .ims-ind .ims-h3 { min-height: 2.3em; } }
.ims-ind__text { color: var(--ims-muted); font-size: 16.5px; line-height: 1.5; }
.ims-ind__less { margin-top: auto; padding-top: 24px; border-top: 1px solid rgba(13, 14, 23, .1); font: 500 20px/1.2 var(--ims-font-display); letter-spacing: -.015em; }
.ims-ind--purple { background: var(--ims-purple); color: #fff; }
.ims-ind--purple .ims-ind__std { background: rgba(16, 14, 70, .22); color: #fff; }
.ims-ind--purple .ims-ind__text { color: rgba(255, 255, 255, .9); }
.ims-ind--purple .ims-ind__less { border-color: rgba(255, 255, 255, .22); }

/* ---------- pricing ---------- */
.ims-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 1200px; margin: clamp(48px, 6vw, 72px) auto 0; }
.ims-plan {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column;
  padding: 36px; border-radius: 30px; background: #fff; box-shadow: inset 0 0 0 1px var(--ims-line);
}
.ims-plan__sky {
  z-index: -1;
  background:
    radial-gradient(70% 30% at 30% 104%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 70%),
    radial-gradient(50% 40% at 90% 0%, rgba(255, 230, 255, .35), rgba(255, 230, 255, 0) 70%),
    linear-gradient(170deg, var(--ims-purple-800), var(--ims-purple) 55%, #7b6fe4);
}
.ims-plan--featured { color: #fff; box-shadow: 0 30px 60px -30px rgba(50, 40, 160, .55); }
.ims-plan__name { display: flex; align-items: center; justify-content: space-between; font: 500 13px/1 var(--ims-font-mono); letter-spacing: .18em; text-transform: uppercase; }
.ims-plan__price { margin-top: 30px; display: flex; align-items: baseline; gap: 8px; }
.ims-plan__amt { font: 400 clamp(48px, 4.6vw, 68px)/.9 var(--ims-font-display); letter-spacing: -.035em; min-width: 0; } /* Archivo at width 118 is wide: "Custom" must fit the card */
.ims-plan__price { flex-wrap: wrap; }
.ims-plan__per { font-size: 17px; color: var(--ims-muted); }
.ims-plan--featured .ims-plan__per { color: rgba(255, 255, 255, .7); }
.ims-plan__note { margin-top: 14px; font-size: 16px; color: var(--ims-muted); text-wrap: pretty; }
.ims-plan--featured .ims-plan__note { color: rgba(255, 255, 255, .8); }
.ims-plan__list { margin: 28px 0 36px; display: grid; gap: 12px; padding-top: 28px; border-top: 1px solid var(--ims-line); }
.ims-plan--featured .ims-plan__list { border-color: rgba(255, 255, 255, .2); }
.ims-plan__list li { position: relative; padding-left: 32px; font-size: 16.5px; }
.ims-plan__list li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--ims-purple-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234d53d8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.ims-plan--featured .ims-plan__list li::before { background-color: var(--ims-accent); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2311130a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.ims-plan .ims-btn { margin-top: auto; }
.ims-plan--night { background: var(--ims-night); color: #fff; box-shadow: none; }
.ims-plan--night .ims-plan__note { color: rgba(255, 255, 255, .72); }
.ims-plan--night .ims-plan__list { border-color: rgba(255, 255, 255, .16); }
.ims-plan--night .ims-plan__list li::before { background-color: rgba(255, 255, 255, .14); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.ims-btn--light { background: #fff; color: var(--ims-ink); }
.ims-btn--light:hover { background: var(--ims-accent); }

/* ---------- FAQ ---------- */
.ims-faq { padding-top: clamp(40px, 5vw, 80px); }
.ims-faq__grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.ims-faq .ims-head { position: sticky; top: 96px; }
.ims-acc { border-top: 1px solid var(--ims-line); }
.ims-acc details { border-bottom: 1px solid var(--ims-line); }
.ims-acc summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 26px 0; cursor: pointer; list-style: none;
  font: 500 clamp(18px, 1.5vw, 21px)/1.3 var(--ims-font-display); letter-spacing: -.01em;
}
.ims-acc summary::-webkit-details-marker { display: none; }
.ims-acc summary::after {
  content: ""; flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: var(--ims-tile) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d0e17' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='M12 5v14'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .35s var(--ims-ease), background-color .25s;
}
.ims-acc details[open] summary::after { transform: rotate(45deg); background-color: var(--ims-accent); }
.ims-acc details p { padding: 0 56px 26px 0; color: var(--ims-muted); font-size: 16.5px; line-height: 1.6; }
.ims-acc details p a { color: var(--ims-ink); text-underline-offset: 3px; }

/* ---------- CTA + contact ---------- */
.ims-cta {
  position: relative; isolation: isolate; overflow: hidden;
  margin: 0 12px; border-radius: 22px; color: #fff;
  padding: clamp(72px, 9vw, 130px) 0;
}
.ims-cta__sky { z-index: -1; }
.ims-cta__sky {
  background:
    radial-gradient(45% 40% at 80% 10%, rgba(255, 236, 255, .25), rgba(255, 236, 255, 0) 70%),
    linear-gradient(180deg, #5b4fd0 0%, #5a4bd2 55%, #6f5fda 80%, #a796ec 100%);
}
.ims-cta__sky .ims-clouds--mid { bottom: -2%; height: clamp(60px, 8vw, 150px); opacity: .35; }
.ims-cta__sky .ims-clouds--near { bottom: -4%; height: clamp(80px, 12vw, 220px); }
.ims-cta__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.ims-cta__mark { width: 64px; height: 64px; margin-bottom: 30px; }
.ims-cta .ims-h2 { margin-top: 0; text-shadow: 0 2px 30px rgba(40, 28, 130, .25); }
.ims-cta__text { margin-top: 22px; font-size: 18px; color: #fff; max-width: 480px; }
.ims-cta__phone { margin-top: 28px; font: 500 clamp(26px, 2.4vw, 34px)/1 var(--ims-font-display); letter-spacing: -.015em; }
.ims-cta__phone a { text-decoration: none; }
.ims-form {
  display: grid; gap: 14px; padding: 30px; border-radius: 26px;
  background: rgba(28, 20, 100, .3); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .34), 0 30px 60px -30px rgba(30, 20, 110, .5);
}
.ims-form__title { font: 500 26px/1.1 var(--ims-font-display); letter-spacing: -.015em; margin-bottom: 6px; }
.ims-form label { display: grid; gap: 7px; }
.ims-form label span { font: 500 12px/1 var(--ims-font-mono); letter-spacing: .16em; text-transform: uppercase; color: #fff; }
.ims-form input, .ims-form textarea {
  width: 100%; border: 0; border-radius: 12px; padding: 13px 15px;
  font: 400 16px/1.4 var(--ims-font-body); color: var(--ims-ink); background: rgba(255, 255, 255, .94);
}
.ims-form textarea { resize: vertical; min-height: 92px; }
.ims-form .ims-btn { margin-top: 8px; }

/* ---------- footer ---------- */
.ims-footer { padding: clamp(64px, 7vw, 96px) 0 28px; }
.ims-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 40px; }
.ims-footer__brand .ims-logo { font-size: 30px; color: var(--ims-brand, #4d53d8); }
.ims-footer__brand p { margin-top: 18px; color: var(--ims-muted); font-size: 15.5px; max-width: 320px; }
.ims-footer__col { display: flex; flex-direction: column; gap: 10px; font-size: 15.5px; }
.ims-footer__col a { text-decoration: none; color: var(--ims-ink-2); }
.ims-footer__col a:hover { color: var(--ims-purple); }
.ims-footer__col p { color: var(--ims-muted); }
.ims-footer__h { font: 500 12px/1 var(--ims-font-mono); letter-spacing: .16em; text-transform: uppercase; margin-bottom: 6px; }
.ims-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 64px; padding-top: 24px; background: linear-gradient(var(--ims-line), var(--ims-line)) top center / calc(100% - 2 * clamp(20px, 4vw, 48px)) 1px no-repeat; font-size: 14px; color: var(--ims-muted); }
.ims-footer__base a { text-decoration: none; }
.ims-footer__base a:hover { color: var(--ims-ink); }

/* ---------- sticky bar ---------- */
.ims-stickybar {
  position: fixed; z-index: 60; top: 12px; left: 50%;
  width: min(1120px, calc(100% - 24px));
  transform: translate(-50%, -160%); transition: transform .5s var(--ims-ease);
}
.ims-stickybar.is-on { transform: translate(-50%, 0); }
.ims-stickybar__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 8px 8px 8px 24px; border-radius: 999px;
  background: rgba(255, 255, 255, .96); box-shadow: 0 0 0 1px rgba(15, 15, 40, .06), 0 16px 40px -20px rgba(20, 20, 60, .3);
}
.ims-stickybar .ims-logo { font-size: 25px; color: var(--ims-brand, #4d53d8); }
.ims-stickybar__links { display: flex; gap: 28px; }
.ims-stickybar__links a { font: 500 12px/1 var(--ims-font-mono); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: var(--ims-ink-2); }
.ims-stickybar__links a:hover { color: var(--ims-purple); }
.ims-stickybar__cta { display: flex; align-items: center; gap: 14px; }

/* ---------- inner pages (/pricing, /faq, /contact-us): short hero on the still cloud frame, no video ---------- */
.ims-hero--page { min-height: clamp(420px, 58vh, 600px); justify-content: center; padding-top: 110px; padding-bottom: clamp(48px, 7vh, 80px); }
.ims-hero--page .ims-hero__copy { padding-top: 0; }
.ims-hero--page .ims-hero__title { font-size: clamp(40px, 5.6vw, 88px); }
.ims-sky--still { --sky-line: .9; }
.ims-sky--still .ims-sky__poster { display: block; }
.ims-pill-glass--text { padding: 9px calc(16px - .16em) 9px 16px; }
.ims-hero--page .ims-hero__lede a { color: #fff; text-underline-offset: 3px; }
.ims-section--tight { padding: clamp(56px, 7vw, 100px) 0; }
.ims-wrap--narrow { max-width: 880px; }
/* big screens: let content breathe instead of a 1280px column in a sea of white */
@media (min-width: 1920px) { .ims-wrap:not(.ims-wrap--narrow) { max-width: 1520px; } }
@media (min-width: 2560px) { .ims-wrap:not(.ims-wrap--narrow) { max-width: 1760px; } }
.ims-pricing__more { margin-top: clamp(32px, 4vw, 48px); text-align: center; color: var(--ims-muted); font-size: 16.5px; }
.ims-pricing__more a { color: var(--ims-ink); text-underline-offset: 3px; }
.ims-contact-page__grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.ims-contact-page__details { display: grid; gap: 30px; padding-top: 8px; }
.ims-contact-page__label { margin-bottom: 10px; font: 500 12px/1 var(--ims-font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ims-muted); }
.ims-contact-page__value { font: 500 clamp(20px, 1.8vw, 26px)/1.3 var(--ims-font-display); letter-spacing: -.015em; }
.ims-contact-page__value a { text-decoration: none; }
.ims-contact-page__value a:hover { text-decoration: underline; text-underline-offset: 4px; }
.ims-contact-page__panel { position: relative; isolation: isolate; overflow: hidden; padding: clamp(10px, 1.6vw, 18px); border-radius: 30px; color: #fff; }
.ims-contact-page__sky {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(45% 40% at 80% 10%, rgba(255, 236, 255, .25), rgba(255, 236, 255, 0) 70%),
    linear-gradient(180deg, #5b4fd0 0%, #5a4bd2 55%, #6f5fda 80%, #a796ec 100%);
}
.ims-contact-page__panel .ims-form { background: transparent; box-shadow: none; }
@media (max-width: 900px) { .ims-contact-page__grid { grid-template-columns: 1fr; } }
@media (max-width: 700px) {
  .ims-sky--still { --sky-line: .94; }
  .ims-hero--page { min-height: 0; padding-top: 96px; }
}

/* grid items may shrink below their card's natural 480px width (data-fit rescales the card) */
.ims-bento > *, .ims-pdca > *, .ims-feature > *, .ims-duo > *, .ims-inds > *, .ims-plans > *, .ims-faq__grid > *, .ims-cta__grid > *, .ims-footer__grid > * { min-width: 0; }

/* ---------- hero intro (light staggered fade-in after Aeline, played by site.js initIntro) ----------
   .ims-intro is set by an inline head script when motion is allowed; site.js removes it in the same task that starts
   the animations (their backwards fill holds the start state). If site.js never runs, the fail-open animation shows
   everything after 3s. */
.ims-intro .ims-nav, .ims-intro .ims-hero__copy, .ims-intro .ims-arc, .ims-intro .ims-hero__foot { opacity: 0; animation: ims-failopen .6s 3s forwards; }
@keyframes ims-failopen { to { opacity: 1; transform: none; } }
.ims-w { display: inline-block; } /* split words (headline + lede) */

/* ---------- reveal (.ims-reveal is added by site.js, so the page fails open without it): soft fade + slight zoom, staggered ---------- */
.ims-reveal [data-reveal] { opacity: 0; transform: translateY(12px) scale(.97); transition: opacity .6s cubic-bezier(.33, 1, .68, 1), transform .6s cubic-bezier(.33, 1, .68, 1); }
.ims-reveal [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .ims-reveal [data-reveal] { opacity: 1; transform: none; transition: none; } }
@media print { .ims-reveal [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; } }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .ims-bento { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .ims-tile--sky { grid-row: span 2; }
  .ims-tile--grey { grid-row: auto; }
  .ims-tile--night { grid-column: 1 / -1; }
  .ims-pdca { grid-template-columns: 1fr 1fr; }
  .ims-pdca__card--wide { grid-column: 1 / -1; grid-row: auto; }
  .ims-pdca__card:nth-child(4) { grid-column: 1 / -1; }
  .ims-inds { grid-template-columns: 1fr 1fr; }
  .ims-inds .ims-ind:last-child { grid-column: 1 / -1; min-height: 0; }
  .ims-footer__grid { grid-template-columns: 1fr 1fr; }
}
/* collapsed nav: hamburger + panel (the link row, Login and CTA no longer fit below ~1040px) */
@media (max-width: 1040px) {
  .ims-plans { grid-template-columns: 1fr; max-width: 560px; }
  .ims-nav { grid-template-columns: 1fr auto auto; }
  .ims-hero { padding-top: 86px; }
  .ims-nav__links {
    position: absolute; top: calc(100% - 4px); left: 12px; right: 12px;
    flex-direction: column; gap: 0; padding: 10px 22px;
    border-radius: 20px; background: rgba(38, 30, 120, .96);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .3s, transform .3s var(--ims-ease), visibility 0s .3s;
  }
  .ims-nav.is-open .ims-nav__links { opacity: 1; visibility: visible; transform: none; transition: opacity .3s, transform .3s var(--ims-ease); }
  .ims-nav__links a { padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
  .ims-nav__links a:last-child { border-bottom: 0; }
  .ims-nav__links a::after { display: none; }
  .ims-nav__login-m { display: block; }
  .ims-nav__cta .ims-link-mono { display: none; }
  .ims-nav__toggle {
    display: grid; place-content: center; gap: 6px; width: 46px; height: 46px; border: 0; border-radius: 50%;
    background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); cursor: pointer;
  }
  .ims-nav__toggle i { display: block; width: 18px; height: 1.5px; background: #fff; transition: transform .3s var(--ims-ease); }
  .ims-nav.is-open .ims-nav__toggle i:first-of-type { transform: translateY(3.75px) rotate(45deg); }
  .ims-nav.is-open .ims-nav__toggle i:last-of-type { transform: translateY(-3.75px) rotate(-45deg); }
  /* toggle comes before the menu in the DOM (Tab goes straight into the open panel); visual order stays logo, CTA, toggle */
  .ims-nav__toggle { grid-column: 3; grid-row: 1; }
  .ims-nav__cta { grid-column: 2; grid-row: 1; }
}
@media (max-width: 900px) {
  .ims-stickybar__links { display: none; }
  .ims-feature, .ims-feature--flip { grid-template-columns: 1fr; }
  .ims-feature--flip .ims-feature__copy { order: 0; }
  .ims-feature__stage { aspect-ratio: 4 / 3; }
  .ims-industries .ims-head { grid-template-columns: 1fr; }
  .ims-industries .ims-lede { justify-self: start; margin-top: 22px; }
  .ims-faq__grid, .ims-cta__grid { grid-template-columns: 1fr; }
  .ims-faq .ims-head { position: static; }
}
@media (min-width: 1041px) and (max-width: 1200px) {
  .ims-nav__links { gap: 22px; }
  .ims-nav__links a { letter-spacing: .14em; }
}
@media (max-width: 680px) {
  .ims-faq { scroll-margin-top: 56px; }
  .ims { font-size: 16px; }
  .ims-hero-frame { padding: 8px; }
  .ims-nav { top: 8px; left: 8px; right: 8px; }
  .ims-hero { border-radius: 18px; min-height: 720px; }
  .ims-nav__cta .ims-btn { display: none; }
  .ims-hero__ctas .ims-btn { width: 100%; max-width: 340px; }
  /* full-width on phones: arrow chip pinned to the right edge, label stays centred */
  .ims-pill-glass { font-size: 10.5px; letter-spacing: .1em; padding: 4px 12px 4px 4px; gap: 8px; }
  .ims-pill-glass--text { padding: 7px calc(12px - .1em) 7px 12px; }
  .ims-iso { width: 24px; height: 24px; }
  .ims-bento, .ims-pdca, .ims-inds, .ims-plans, .ims-duo { grid-template-columns: 1fr; }
  .ims-tile--sky { min-height: 420px; grid-row: auto; }
  .ims-pdca { padding: 10px; border-radius: 26px; }
  .ims-pdca__card, .ims-pdca__card:nth-child(4) { flex-direction: column; align-items: stretch; gap: 40px; min-height: 0; padding: 24px; }
  .ims-pdca__card--wide { padding-bottom: 0; }
  .ims-pdca__visual { margin: 0 -24px; padding: 24px 16px 0; }
  .ims-inds .ims-ind:last-child { grid-column: auto; }
  .ims-ind { min-height: 0; }
  .ims-plan { padding: 28px; }
  .ims-acc details p { padding-right: 0; }
  .ims-cta { margin: 0 8px; }
  .ims-form { padding: 22px; }
  .ims-footer__grid { grid-template-columns: 1fr; }
  .ims-stickybar__cta .ims-link-mono { display: none; }
  .ims-hero__foot { letter-spacing: .1em; text-wrap: balance; }
  .ims-duo__tile { padding: 10px 10px 28px; }
  .ims-duo__stage { padding: 18px 12px 0; }
}
@media (max-width: 360px) {
  .ims-hero__copy { padding-left: 12px; padding-right: 12px; }
  .ims-pill-glass { letter-spacing: .04em; padding: 4px 10px 4px 4px; gap: 6px; }
  .ims-pill-glass--text { padding: 7px calc(10px - .04em) 7px 10px; }
}

/* ---------- hero fit: height-aware sizing (placed last so it wins over the width blocks) ---------- */
@media (min-width: 901px) and (max-height: 820px) {
  .ims-nav { padding-top: 14px; padding-bottom: 14px; }
  .ims-hero { padding-top: 72px; }
  .ims-hero__title { margin-top: 16px; }
  .ims-hero__lede { margin-top: 16px; }
  .ims-hero__ctas { margin-top: 22px; }
  .ims-arc { padding-top: 8px; }
  .ims-hero__foot { padding: 4px 20px 14px; }
}
@media (orientation: portrait) and (min-width: 681px) { .ims-hero { min-height: min(calc(100svh - 24px), 850px); } }
@media (max-height: 520px) { .ims-hero { min-height: 0; } }

/* ---------- jQuery Mobile host hardening (MOBLE legacy jQM / theme-shim); harmless standalone ---------- */
.ims, .ims-app-card { text-shadow: none; }
.ims a.ims-btn--accent { color: var(--ims-accent-ink); }
.ims a.ims-btn--glass, .ims .ims-link-mono--light { color: #fff; }
.ims a.ims-btn--dark { color: var(--ims-accent); }
.ims a.ims-btn--outline { color: var(--ims-ink); }
.ims a.ims-btn, .ims .ims-link-mono, .ims .ims-cta__phone a { font-weight: 500; }
.ims .ims-footer__col a { font-weight: 400; } /* same weights as standalone; jQM sets bold links */
.ui-content:has(> .ims) { padding: 0; overflow: visible; }

/* 404 (theme notFound + the site's '404' row): the hero sky, copy centred in it */
.ims-hero--404 { min-height: clamp(520px, calc(100svh - 24px), 820px); justify-content: center; padding-bottom: 72px; }

/* ---- cards/calendar.css ---- */
/* App UI card: Calendar month view (v2 app /calendar). 480 x 360 artboard.
   ASCII only. Every selector is scoped to .ims-app-card--calendar. */

.ims-app-card--calendar {
  --cal-audit: var(--ims-app-red-500);
  --cal-audit-bg: var(--ims-app-red-100);
  --cal-audit-fg: #b91c1c;
  --cal-training: var(--ims-app-emerald-500);
  --cal-training-bg: #d1fae5;
  --cal-training-fg: #047857;
  --cal-doc: var(--ims-app-indigo-500);
  --cal-doc-bg: #e0e7ff;
  --cal-doc-fg: #4338ca;
  --cal-mgmt: var(--ims-app-pink-500);
  --cal-mgmt-bg: #fce7f3;
  --cal-mgmt-fg: #be185d;
  display: flex;
  flex-direction: column;
}

/* Soft crop: the month continues below the artboard */
.ims-app-card--calendar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 32px;
  background: linear-gradient(rgba(255, 255, 255, 0), #fff 85%);
  pointer-events: none;
}

/* Header */
.ims-app-card--calendar .cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: none;
  gap: 12px;
  height: 56px;
  padding: 0 20px;
  border-bottom: 1px solid var(--ims-app-border);
}
.ims-app-card--calendar .cal-title {
  display: flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
}
.ims-app-card--calendar .cal-h {
  font-size: 17px;
  line-height: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ims-app-fg);
}
.ims-app-card--calendar .cal-month {
  font-size: 12px;
  font-weight: 500;
  color: var(--ims-app-muted-fg);
}
.ims-app-card--calendar .cal-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ims-app-card--calendar .cal-seg {
  display: flex;
  height: 28px;
  border: 1px solid var(--ims-app-border);
  border-radius: 6px;
  overflow: hidden;
}
.ims-app-card--calendar .cal-seg-item {
  display: flex;
  align-items: center;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ims-app-slate-600);
}
.ims-app-card--calendar .cal-seg-item.is-active {
  background: var(--ims-app-primary);
  color: var(--ims-app-primary-fg);
}

.ims-app-card--calendar .cal-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px;
  border: 1px solid var(--ims-app-border);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ims-app-fg);
  white-space: nowrap;
}
.ims-app-card--calendar .cal-btn--primary {
  padding: 0 12px 0 10px;
  border-color: var(--ims-app-primary);
  background: var(--ims-app-primary);
  color: var(--ims-app-primary-fg);
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.25);
}

/* Legend */
.ims-app-card--calendar .cal-legend {
  display: flex;
  align-items: center;
  flex: none;
  gap: 14px;
  padding: 8px 20px;
  border-bottom: 1px solid var(--ims-app-border);
  font-size: 11px;
  color: var(--ims-app-slate-600);
  white-space: nowrap;
}
.ims-app-card--calendar .cal-legend li {
  display: flex;
  align-items: center;
  gap: 6px;
}
.ims-app-card--calendar .cal-dot {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.ims-app-card--calendar .cal-dot--audit { background: var(--cal-audit); }
.ims-app-card--calendar .cal-dot--training { background: var(--cal-training); }
.ims-app-card--calendar .cal-dot--doc { background: var(--cal-doc); }
.ims-app-card--calendar .cal-dot--mgmt { background: var(--cal-mgmt); }

/* Month grid */
.ims-app-card--calendar .cal-grid {
  flex: none;
  margin: 12px 20px 0;
  border: 1px solid var(--ims-app-border);
  border-radius: var(--ims-app-radius);
  overflow: hidden;
}
.ims-app-card--calendar .cal-dow,
.ims-app-card--calendar .cal-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.ims-app-card--calendar .cal-dow {
  height: 24px;
  align-items: center;
  border-bottom: 1px solid var(--ims-app-border);
  font-size: 11px;
  font-weight: 500;
  color: var(--ims-app-fg);
}
.ims-app-card--calendar .cal-dow span { padding-left: 7px; }
.ims-app-card--calendar .cal-dow .is-sun { color: var(--ims-app-red-500); }
.ims-app-card--calendar .cal-dow .is-sat { color: #3b82f6; }

.ims-app-card--calendar .cal-week {
  position: relative;
  height: 50px;
  border-bottom: 1px solid var(--ims-app-border);
}
.ims-app-card--calendar .cal-day {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
  padding: 4px 3px 0;
  border-right: 1px solid var(--ims-app-border);
}
.ims-app-card--calendar .cal-day:nth-child(7) { border-right: 0; }

.ims-app-card--calendar .cal-num {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  height: 14px;
  padding: 0 0 0 4px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  color: var(--ims-app-fg);
  font-variant-numeric: tabular-nums;
}
.ims-app-card--calendar .is-out .cal-num { color: var(--ims-app-slate-400); }
.ims-app-card--calendar .is-today .cal-num {
  justify-content: center;
  width: 20px;
  height: 20px;
  margin: -3px 0;
  padding: 0;
  border-radius: 50%;
  background: var(--ims-app-primary);
  color: var(--ims-app-primary-fg);
  font-weight: 600;
}

/* Event chips: tinted, 3px category edge */
.ims-app-card--calendar .cal-ev {
  display: block;
  width: 100%;
  padding: 1px 3px 1px 5px;
  border-left: 3px solid;
  border-radius: 1px 4px 4px 1px;
  font-size: 10px;
  font-weight: 500;
  line-height: 12px;
}
.ims-app-card--calendar .cal-ev--bar {
  position: absolute;
  top: 20px;
  width: auto;
  white-space: nowrap;
}
.ims-app-card--calendar .cal-ev--c3 { left: calc(100% / 7 * 2 + 3px); }
.ims-app-card--calendar .cal-ev--c5 { left: calc(100% / 7 * 4 + 3px); }
.ims-app-card--calendar .cal-ev--w2 { width: calc(100% / 7 * 2 - 6px); }

.ims-app-card--calendar .cal-ev--audit { border-color: var(--cal-audit); background: var(--cal-audit-bg); color: var(--cal-audit-fg); }
.ims-app-card--calendar .cal-ev--training { border-color: var(--cal-training); background: var(--cal-training-bg); color: var(--cal-training-fg); }
.ims-app-card--calendar .cal-ev--doc { border-color: var(--cal-doc); background: var(--cal-doc-bg); color: var(--cal-doc-fg); }
.ims-app-card--calendar .cal-ev--mgmt { border-color: var(--cal-mgmt); background: var(--cal-mgmt-bg); color: var(--cal-mgmt-fg); }

/* ---- cards/compliance.css ---- */
/* App UI card: Compliance Tracker (v2.imsstratus.com.au/compliance-tracker).
   480 x 360 artboard, all selectors scoped to .ims-app-card--compliance. ASCII only. */

.ims-app-card--compliance .cc-inner {
  padding: 14px 20px 0;
}

/* Soft crop: the Plan list continues past the bottom edge */
.ims-app-card--compliance::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 32px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 85%);
  pointer-events: none;
}

/* Header */
.ims-app-card--compliance .cc-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.ims-app-card--compliance .cc-title {
  font-size: 17px;
  line-height: 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ims-app-fg);
}
.ims-app-card--compliance .cc-sub {
  font-size: 12px;
  line-height: 16px;
  color: var(--ims-app-muted-fg);
}
.ims-app-card--compliance .cc-select {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 148px;
  height: 28px;
  padding: 0 10px 0 12px;
  border: 1px solid var(--ims-app-border);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  font-size: 12px;
  line-height: 16px;
  color: var(--ims-app-fg);
}
.ims-app-card--compliance .cc-select svg {
  opacity: 0.5;
}

/* Overall compliance panel */
.ims-app-card--compliance .cc-overall {
  margin-top: 12px;
  padding: 10px 16px 12px;
  border: 1px solid var(--ims-app-border);
  border-radius: var(--ims-app-radius);
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.ims-app-card--compliance .cc-overall__top {
  display: flex;
  align-items: last baseline;
  justify-content: space-between;
}
.ims-app-card--compliance .cc-label {
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  color: var(--ims-app-slate-600);
}
.ims-app-card--compliance .cc-count {
  margin-top: 2px;
  font-size: 15px;
  line-height: 28px;
  font-weight: 500;
  color: var(--ims-app-slate-600);
}
.ims-app-card--compliance .cc-count__num {
  font-size: 26px;
  line-height: 20px; /* keeps the mixed-size line box at the 28px strut */
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ims-app-fg);
  margin-right: 2px;
}
.ims-app-card--compliance .cc-pct {
  font-size: 30px;
  line-height: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ims-app-green-700);
  font-variant-numeric: tabular-nums;
}
.ims-app-card--compliance .cc-bar {
  position: relative;
  height: 8px;
  margin-top: 8px;
  border-radius: 999px;
  background: var(--ims-app-slate-100);
  overflow: hidden;
}
.ims-app-card--compliance .cc-bar__fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 85.7%;
  border-radius: 999px;
  background: var(--ims-app-green-500);
}
.ims-app-card--compliance .cc-legend {
  display: flex;
  gap: 16px;
  margin-top: 8px;
  font-size: 11px;
  line-height: 14px;
  color: var(--ims-app-slate-600);
}
.ims-app-card--compliance .cc-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Status dots */
.ims-app-card--compliance .cc-dot {
  display: inline-block;
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ims-app-slate-400);
}
.ims-app-card--compliance .cc-dot--sm {
  width: 8px;
  height: 8px;
}
.ims-app-card--compliance .cc-dot--green { background: var(--ims-app-green-500); }
.ims-app-card--compliance .cc-dot--amber { background: var(--ims-app-amber-500); }
.ims-app-card--compliance .cc-dot--red { background: var(--ims-app-red-500); }

/* Plan phase panel (bottom edge runs off the artboard) */
.ims-app-card--compliance .cc-phase {
  margin-top: 12px;
  border: 1px solid var(--ims-app-border);
  border-radius: var(--ims-app-radius);
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}
.ims-app-card--compliance .cc-phase__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 32px;
  padding: 0 16px;
  border-bottom: 1px solid var(--ims-app-border);
}
.ims-app-card--compliance .cc-phase__name {
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: var(--ims-app-fg);
}
.ims-app-card--compliance .cc-badge {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--ims-app-green-50);
  box-shadow: inset 0 0 0 1px var(--ims-app-green-100);
  font-size: 11px;
  line-height: 14px;
  font-weight: 600;
  color: var(--ims-app-green-700);
}
.ims-app-card--compliance .cc-row {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 12px 0 16px;
  border-bottom: 1px solid var(--ims-app-border);
}
.ims-app-card--compliance .cc-row--hover {
  background: var(--ims-app-sidebar);
}
.ims-app-card--compliance .cc-row__main {
  flex: 1 1 auto;
  min-width: 0;
}
.ims-app-card--compliance .cc-row__name {
  font-size: 12.5px;
  line-height: 18px;
  font-weight: 500;
  color: var(--ims-app-fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ims-app-card--compliance .cc-row--hover .cc-row__name {
  color: var(--ims-app-primary);
}
.ims-app-card--compliance .cc-row__meta {
  margin-top: 1px;
  font-size: 11px;
  line-height: 14px;
  color: var(--ims-app-muted-fg);
  font-variant-numeric: tabular-nums;
}
.ims-app-card--compliance .cc-row__status {
  flex: none;
  font-size: 12px;
  line-height: 16px;
  color: var(--ims-app-slate-600);
  white-space: nowrap;
}
.ims-app-card--compliance .cc-row__chev {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 14px;
  height: 14px;
  color: var(--ims-app-slate-400);
}

/* ---- cards/forms.css ---- */
/* IMS app card: Custom Forms builder (cards/forms.html). ASCII only. */

.ims-app-card--forms {
  display: flex;
  flex-direction: column;
}

/* Soft crop: the palette and canvas continue below the artboard */
.ims-app-card--forms::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 32px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 85%);
  pointer-events: none;
  z-index: 3;
}

/* ---- Header -------------------------------------------------------------- */
.ims-app-card--forms .fm-head {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 56px;
  padding: 0 20px 0 10px;
  border-bottom: 1px solid var(--ims-app-border);
  flex: none;
}
.ims-app-card--forms .fm-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: var(--ims-app-slate-600);
}
.ims-app-card--forms .fm-status {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 20px;
  padding: 0 6px 0 9px;
  border-radius: 999px;
  background: var(--ims-app-amber-100);
  color: var(--ims-app-amber-700);
  font-size: 11px;
  font-weight: 600;
}
.ims-app-card--forms .fm-title {
  margin-left: 4px;
  font-size: 17px;
  line-height: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ims-app-fg);
  white-space: nowrap;
}
.ims-app-card--forms .fm-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
}
.ims-app-card--forms .fm-btn {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.ims-app-card--forms .fm-btn--outline {
  border: 1px solid var(--ims-app-border);
  background: #fff;
  color: var(--ims-app-fg);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}
.ims-app-card--forms .fm-btn--primary {
  border: 1px solid var(--ims-app-primary);
  background: var(--ims-app-primary);
  color: var(--ims-app-primary-fg);
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.25);
}

/* ---- Body: palette + canvas ---------------------------------------------- */
.ims-app-card--forms .fm-body {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 164px 1fr;
}

.ims-app-card--forms .fm-palette {
  padding: 16px 12px 0 20px;
  border-right: 1px solid var(--ims-app-border);
}
.ims-app-card--forms .fm-micro {
  font-size: 10.5px;
  font-weight: 600;
  line-height: 12px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ims-app-muted-fg);
}
.ims-app-card--forms .fm-types {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
}
.ims-app-card--forms .fm-type {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--ims-app-border);
  border-radius: 6px;
  background: #fff;
  font-size: 12px;
  font-weight: 500;
  color: var(--ims-app-fg);
  white-space: nowrap;
}
.ims-app-card--forms .fm-type svg {
  color: var(--ims-app-slate-500);
}
.ims-app-card--forms .fm-type--active {
  border-color: #bfdbfe;
  background: var(--ims-app-blue-50);
  color: var(--ims-app-blue-700);
}
.ims-app-card--forms .fm-type--active svg {
  color: var(--ims-app-primary);
}

.ims-app-card--forms .fm-stage {
  position: relative;
  padding: 16px 20px 0;
}
.ims-app-card--forms .fm-canvas {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: calc(100% + 24px);
  padding: 16px 20px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
}

/* ---- Form fields --------------------------------------------------------- */
.ims-app-card--forms .fm-field {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ims-app-card--forms .fm-label {
  font-size: 11px;
  font-weight: 600;
  line-height: 14px;
  color: var(--ims-app-fg);
}
.ims-app-card--forms .fm-req {
  margin-left: 2px;
  color: var(--ims-app-red-500);
}
.ims-app-card--forms .fm-input {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--ims-app-border);
  border-radius: 6px;
  background: #fff;
  font-size: 12px;
  color: var(--ims-app-fg);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.ims-app-card--forms .fm-input svg {
  color: var(--ims-app-muted-fg);
}
.ims-app-card--forms .fm-input--select {
  justify-content: space-between;
}

/* Selected field: 2px primary ring, ring sits outside the content column */
.ims-app-card--forms .fm-field--selected {
  margin: 0 -8px;
  padding: 8px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 0 0 2px var(--ims-app-primary), 0 6px 16px -6px rgba(37, 99, 235, 0.35);
}
/* Drag handle shares the label row, top-right, like a builder field toolbar */
.ims-app-card--forms .fm-grip {
  position: absolute;
  right: 8px;
  top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 14px;
  color: var(--ims-app-slate-400);
}
.ims-app-card--forms .fm-sign {
  position: relative;
  height: 46px;
  border: 1px solid var(--ims-app-border);
  border-radius: 6px;
  background: var(--ims-app-sidebar);
}
.ims-app-card--forms .fm-scribble {
  position: absolute;
  left: 22px;
  top: 2px;
  color: #1e3a8a;
}
/* Signature baseline: the x sits on it and the scribble signs across it */
.ims-app-card--forms .fm-sign::before {
  content: "";
  position: absolute;
  left: 24px;
  right: 16px;
  bottom: 11px;
  border-top: 1px solid #cbd5e1;
}
.ims-app-card--forms .fm-sign-x {
  position: absolute;
  left: 9px;
  bottom: 8px;
  font-size: 12px;
  line-height: 1;
  color: var(--ims-app-slate-500);
}

/* ---- cards/projects.css ---- */
/* App UI card: Projects list (v2.imsstratus.com.au/projects). ASCII only. */
.ims-app-card--projects {
  display: flex;
  flex-direction: column;
}

/* Header: title + actions */
.ims-app-card--projects .pj-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 28px;
  margin: 14px 20px 0;
}
.ims-app-card--projects .pj-title {
  font-size: 17px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: -0.01em;
  color: var(--ims-app-fg);
}
.ims-app-card--projects .pj-actions {
  display: flex;
  gap: 8px;
}
.ims-app-card--projects .pj-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}
.ims-app-card--projects .pj-btn--outline {
  background: #fff;
  border: 1px solid var(--ims-app-border);
  color: var(--ims-app-fg);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
}
.ims-app-card--projects .pj-btn--primary {
  background: var(--ims-app-primary);
  border: 1px solid var(--ims-app-primary);
  color: var(--ims-app-primary-fg);
  box-shadow: 0 1px 2px rgba(37, 99, 235, .25);
}

/* Toolbar: Active / Archived pills + search */
.ims-app-card--projects .pj-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 28px;
  margin: 12px 20px 0;
}
.ims-app-card--projects .pj-tabs {
  display: flex;
  gap: 6px;
}
.ims-app-card--projects .pj-tab {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--ims-app-slate-100);
  color: var(--ims-app-slate-600);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1;
}
.ims-app-card--projects .pj-tab--active {
  background: var(--ims-app-primary);
  color: var(--ims-app-primary-fg);
}
.ims-app-card--projects .pj-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 184px;
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--ims-app-border);
  border-radius: 6px;
  background: #fff;
  color: var(--ims-app-muted-fg);
  font-size: 12px;
  line-height: 1;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.ims-app-card--projects .pj-search svg {
  color: var(--ims-app-slate-500);
}

/* Table */
.ims-app-card--projects .pj-table {
  margin-top: 12px;
}
.ims-app-card--projects .pj-tr {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 100px;
  column-gap: 16px;
  align-content: center;
  align-items: baseline;
  height: 30px;
  padding: 0 20px;
  border-top: 1px solid var(--ims-app-border);
}
.ims-app-card--projects .pj-tr > span {
  line-height: 16px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.ims-app-card--projects .pj-thead {
  height: 28px;
  background: var(--ims-app-blue-50);
  color: var(--ims-app-muted-fg);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.ims-app-card--projects .pj-tr--selected {
  background: rgba(219, 234, 254, .7);
  box-shadow: inset 2px 0 0 var(--ims-app-primary);
}
.ims-app-card--projects .pj-tr--selected .pj-code {
  color: var(--ims-app-primary);
  font-weight: 500;
}
.ims-app-card--projects .pj-code {
  font-family: var(--ims-font-mono);
  font-size: 11.5px;
  color: var(--ims-app-slate-500);
}
.ims-app-card--projects .pj-name {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ims-app-fg);
}
.ims-app-card--projects .pj-cat {
  font-size: 12px;
  color: var(--ims-app-slate-600);
}

/* Footer: record count + pager */
.ims-app-card--projects .pj-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  height: 56px;
  padding: 0 20px;
  border-top: 1px solid var(--ims-app-border);
}
.ims-app-card--projects .pj-count {
  font-size: 11.5px;
  color: var(--ims-app-slate-500);
}
.ims-app-card--projects .pj-pager {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ims-app-card--projects .pj-pg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--ims-app-border);
  border-radius: 6px;
  background: #fff;
  color: var(--ims-app-fg);
}
.ims-app-card--projects .pj-pg--off {
  color: var(--ims-app-slate-400);
}
.ims-app-card--projects .pj-pg-label {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ims-app-slate-600);
  font-variant-numeric: tabular-nums;
}

/* ---- cards/reminders.css ---- */
/* Reminders card (v2.imsstratus.com.au/reminders). 480 x 360 artboard, ASCII only. */

.ims-app-card--reminders .rm-body {
  padding: 16px 20px 0;
}

/* Soft fade: the list continues past the bottom edge on purpose */
.ims-app-card--reminders::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 32px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 85%);
  pointer-events: none;
}

/* Header */
.ims-app-card--reminders .rm-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 24px;
}
.ims-app-card--reminders .rm-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ims-app-card--reminders .rm-title {
  font-size: 17px;
  line-height: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ims-app-fg);
}
.ims-app-card--reminders .rm-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--ims-app-primary);
  color: var(--ims-app-primary-fg);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.ims-app-card--reminders .rm-dismissed {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ims-app-muted-fg);
}

/* Filter pills */
.ims-app-card--reminders .rm-filters {
  display: flex;
  gap: 6px;
  margin-top: 12px;
}
.ims-app-card--reminders .rm-filter {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--ims-app-slate-100);
  color: var(--ims-app-slate-600);
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
}
.ims-app-card--reminders .rm-filter-n {
  color: var(--ims-app-slate-400);
  font-variant-numeric: tabular-nums;
}
.ims-app-card--reminders .rm-filter--active {
  background: var(--ims-app-primary);
  color: var(--ims-app-primary-fg);
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.25);
}
.ims-app-card--reminders .rm-filter--active .rm-filter-n {
  color: rgba(255, 255, 255, 0.75);
}

/* List */
.ims-app-card--reminders .rm-list {
  margin-top: 12px;
  border: 1px solid var(--ims-app-border);
  border-radius: var(--ims-app-radius);
  overflow: hidden;
}
.ims-app-card--reminders .rm-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 6px 12px;
  border-top: 1px solid var(--ims-app-border);
}
.ims-app-card--reminders .rm-row:first-child {
  border-top: 0;
}

.ims-app-card--reminders .rm-type {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 20px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}
.ims-app-card--reminders .rm-type--task {
  background: var(--ims-app-green-100);
  color: var(--ims-app-green-700);
}
.ims-app-card--reminders .rm-type--timesheet {
  background: var(--ims-app-amber-100);
  color: var(--ims-app-amber-700);
}
.ims-app-card--reminders .rm-type--workflow {
  background: var(--ims-app-slate-100);
  color: var(--ims-app-slate-600);
}
.ims-app-card--reminders .rm-type--leave {
  background: var(--ims-app-purple-100);
  color: var(--ims-app-purple-700);
}

.ims-app-card--reminders .rm-main {
  flex: 1 1 auto;
  min-width: 0;
}
.ims-app-card--reminders .rm-name {
  font-size: 12.5px;
  line-height: 16px;
  font-weight: 600;
  color: var(--ims-app-fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ims-app-card--reminders .rm-sub {
  margin-top: 1px;
  font-size: 11px;
  line-height: 14px;
  color: var(--ims-app-muted-fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ims-app-card--reminders .rm-date {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 96px;
  height: 20px;
  border-radius: 999px;
  background: var(--ims-app-slate-100);
  color: var(--ims-app-slate-600);
  font-size: 11px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ims-app-card--reminders .rm-date--overdue {
  background: var(--ims-app-red-100);
  color: var(--ims-app-red-600);
  font-weight: 600;
}

/* ---- cards/taskmatrix.css ---- */
/* App UI card: Task Matrix kanban (v2.imsstratus.com.au/task-matrix). ASCII only. */

/* Bottom crop: the board keeps going, a soft white fade says so. */
.ims-app-card--taskmatrix::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 32px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 85%);
  pointer-events: none;
}

/* Header */
.ims-app-card--taskmatrix .tm-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 20px;
  border-bottom: 1px solid var(--ims-app-border);
}
.ims-app-card--taskmatrix .tm-title {
  font-size: 17px;
  line-height: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ims-app-fg);
}
.ims-app-card--taskmatrix .tm-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ims-app-card--taskmatrix .tm-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.ims-app-card--taskmatrix .tm-btn--filter {
  color: var(--ims-app-blue-700);
  background: var(--ims-app-blue-50);
  border: 1px solid #bfdbfe;
}
.ims-app-card--taskmatrix .tm-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--ims-app-primary);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
}
.ims-app-card--taskmatrix .tm-btn--primary {
  color: var(--ims-app-primary-fg);
  background: var(--ims-app-primary);
  border: 1px solid var(--ims-app-primary);
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.25);
  padding: 0 12px 0 10px;
}

/* Active filter row */
.ims-app-card--taskmatrix .tm-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 20px;
}
.ims-app-card--taskmatrix .tm-filters__label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ims-app-muted-fg);
}
.ims-app-card--taskmatrix .tm-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0 8px 0 10px;
  border-radius: 999px;
  border: 1px solid #bfdbfe;
  background: var(--ims-app-blue-50);
  color: var(--ims-app-blue-700);
  font-size: 11.5px;
  font-weight: 500;
}
.ims-app-card--taskmatrix .tm-chip svg {
  width: 11px;
  height: 11px;
  opacity: 0.8;
}

/* Board */
.ims-app-card--taskmatrix .tm-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 12px 20px 0;
}
.ims-app-card--taskmatrix .tm-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 260px;
  padding: 0 5px 6px;
  border-radius: 8px;
  border: 1px solid var(--tm-line);
  background: var(--tm-bg);
}
.ims-app-card--taskmatrix .tm-col--open {
  --tm-bg: var(--ims-app-blue-100);
  --tm-line: #bfdbfe;
  --tm-ink: var(--ims-app-blue-700);
  --tm-dot: #3b82f6;
}
.ims-app-card--taskmatrix .tm-col--progress {
  --tm-bg: var(--ims-app-amber-100);
  --tm-line: #fde68a;
  --tm-ink: var(--ims-app-amber-700);
  --tm-dot: var(--ims-app-amber-500);
}
.ims-app-card--taskmatrix .tm-col--closed {
  --tm-bg: var(--ims-app-green-100);
  --tm-line: #bbf7d0;
  --tm-ink: var(--ims-app-green-700);
  --tm-dot: var(--ims-app-green-500);
}
.ims-app-card--taskmatrix .tm-col__head {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  margin: 0 -5px;
  padding: 0 9px 0 10px;
  border-radius: 7px 7px 0 0;
  background: var(--tm-line);
}
.ims-app-card--taskmatrix .tm-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--tm-dot);
  flex: none;
}
.ims-app-card--taskmatrix .tm-col__name {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--tm-ink);
  white-space: nowrap;
}
.ims-app-card--taskmatrix .tm-count {
  margin-left: auto;
  min-width: 22px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--tm-ink);
  font-size: 10px;
  font-weight: 600;
  line-height: 14px;
  text-align: center;
}

/* Task cards */
.ims-app-card--taskmatrix .tm-task {
  padding: 10px;
  border-radius: 6px;
  border: 1px solid rgba(15, 23, 42, 0.07);
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}
.ims-app-card--taskmatrix .tm-task__title {
  display: block;
  min-height: 32px;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  text-wrap: balance;
  color: var(--ims-app-fg);
}
.ims-app-card--taskmatrix .tm-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ims-app-card--taskmatrix .tm-meta li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  line-height: 15px;
  color: var(--ims-app-slate-600);
  white-space: nowrap;
}
.ims-app-card--taskmatrix .tm-meta li svg {
  width: 12px;
  height: 12px;
  color: var(--ims-app-slate-500);
}
.ims-app-card--taskmatrix .tm-meta li.tm-meta--overdue,
.ims-app-card--taskmatrix .tm-meta li.tm-meta--overdue svg {
  color: var(--ims-app-red-500);
}
.ims-app-card--taskmatrix .tm-meta li.tm-meta--done {
  color: var(--ims-app-green-700);
}
.ims-app-card--taskmatrix .tm-meta li.tm-meta--done svg {
  color: var(--ims-app-green-500);
}
