/* ==========================================================================
   Juviq Automation — design system
   --------------------------------------------------------------------------
   One hand-written stylesheet, no build step. Everything is driven by the
   custom properties in :root, so re-theming the whole site means editing the
   token block and nothing else.

   Layers, in order:
     1. Tokens          — colour, type, space, radius, shadow, motion
     2. Reset & base    — normalisation and element defaults
     3. Layout          — container, section, grid
     4. Typography      — display scale, eyebrow, lead, prose
     5. Components      — button, card, pill, stat, accordion, nav, footer…
     6. Utilities       — spacing/alignment escape hatches
     7. Motion          — scroll reveal, marquee, ambient effects

   The palette is taken from the Juviq logo: blue #01519A, navy #150F3F and the
   red #EE1D23 of the dot, on white. Bands that open a page carry .wash, a pale
   blue gradient that fades into the white below it.

   Dark mode is an opt-in token swap on [data-theme] — the same design with the
   surfaces inverted to the logo navy, not a second identity.
   ========================================================================== */

/* ==========================================================================
   1. Tokens
   ========================================================================== */

:root {
  /* — Brand ————————————————————————————————————— */
  /*
    Sampled straight out of the Juviq logo, so the site and the mark are the
    same three colours:
      #01519A  the blue "J" swoosh and the AUTOMATION wordmark  → --brand-600
      #150F3F  the dark arc and the "uviq" letters              → --navy-800
      #EE1D23  the dot over the j                               → --red-500
    Everything else on the page is a step of one of these three ramps.
  */
  --brand-50:  #E9F2FB;
  --brand-100: #CFE3F6;
  --brand-200: #A3C8EC;
  --brand-300: #6BA5DD;
  --brand-400: #3781C6;
  --brand-500: #0F63AE;
  --brand-600: #01519A;
  --brand-700: #014483;
  --brand-800: #01366A;
  --brand-900: #012A53;

  --navy-50:  #EEEDF4;
  --navy-100: #D6D4E2;
  --navy-200: #ADA9C2;
  --navy-300: #6F6892;
  --navy-500: #2C2464;
  --navy-600: #211951;
  --navy-700: #1B1348;
  --navy-800: #150F3F;
  --navy-900: #0C0926;

  /* The logo's red. A spark, never a surface — see the .eyebrow dot. */
  --red-50:  #FDECEC;
  --red-400: #F2464B;
  --red-500: #EE1D23;
  --red-600: #CE1218;

  --ok-500: #16A34A;
  --danger-500: var(--red-500);

  /* — Semantic surface / text (light theme) ——————————————— */
  --bg:            #FFFFFF;
  --bg-soft:       #F3F7FC;
  --bg-inset:      #E4EEF8;
  --surface:       #FFFFFF;
  --surface-2:     #FAFCFE;
  --surface-alpha: rgba(255, 255, 255, .82);

  --border:        #E0E8F2;
  --border-strong: #C3D3E5;

  /* Body copy is the logo navy, lightened in two steps for secondary text. */
  --text:   var(--navy-800);
  --text-2: #4E4C70;
  --text-3: #837FA0;
  --text-on-brand: #FFFFFF;

  --brand:      var(--brand-600);
  --brand-hover:var(--brand-700);
  --brand-soft: var(--brand-50);
  --accent:     var(--red-500);

  --ring: rgba(1, 81, 154, .3);

  /* — Elevation ————————————————————————————————— */
  /* Tinted with the logo navy rather than black, so shadows read blue-violet
     against white surfaces instead of muddy grey. */
  --shadow-xs: 0 1px 2px rgba(21, 15, 63, .06);
  --shadow-sm: 0 1px 3px rgba(21, 15, 63, .08), 0 1px 2px rgba(21, 15, 63, .05);
  --shadow-md: 0 6px 20px -4px rgba(21, 15, 63, .11), 0 2px 6px rgba(21, 15, 63, .06);
  --shadow-lg: 0 18px 44px -12px rgba(21, 15, 63, .18), 0 4px 12px rgba(21, 15, 63, .07);
  --shadow-xl: 0 32px 64px -20px rgba(21, 15, 63, .24);
  --shadow-brand: 0 12px 28px -8px rgba(1, 81, 154, .42);

  /* — Type ——————————————————————————————————————— */
  --font-display: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Fluid scale — every step interpolates between 360px and 1440px viewports */
  --fs-display: clamp(2.5rem, 1.5rem + 4.2vw, 3.9rem);
  --fs-h1: clamp(2.1rem, 1.25rem + 3.6vw, 3.4rem);
  --fs-h2: clamp(1.7rem, 1.15rem + 2.3vw, 2.6rem);
  --fs-h3: clamp(1.25rem, 1.05rem + 0.85vw, 1.6rem);
  --fs-h4: clamp(1.05rem, .98rem + 0.35vw, 1.2rem);
  --fs-lead: clamp(1.02rem, .96rem + 0.45vw, 1.2rem);
  --fs-body: 1rem;
  --fs-sm: .9rem;
  --fs-xs: .8rem;
  --fs-eyebrow: .74rem;

  /* — Space ————————————————————————————————————— */
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;

  --section-y: clamp(3.5rem, 2.4rem + 4.5vw, 6.25rem);
  --container: 1200px;
  --container-narrow: 820px;
  --gutter: clamp(1.15rem, .6rem + 2vw, 2.5rem);

  /* — Radius ————————————————————————————————————— */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* — Motion ————————————————————————————————————— */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur-fast: .16s;
  --dur: .28s;
  --dur-slow: .6s;

  /* Tall enough to carry the 44px logo lockup with breathing room. */
  --header-h: 78px;
}

/*
  Dark theme — an opt-in courtesy, not the site's identity. The site is a
  white-and-blue design; this is the same design with the surfaces inverted to
  navy, keeping the blue brand intact.
*/
[data-theme="dark"] {
  /* Surfaces are the logo navy, darkened — not a neutral black. */
  --bg:            #0A0820;
  --bg-soft:       #0F0C2B;
  --bg-inset:      #1B1547;
  --surface:       #120F33;
  --surface-2:     #181341;
  --surface-alpha: rgba(18, 15, 51, .82);

  --border:        #241E52;
  --border-strong: #362E6E;

  --text:   #EDECF7;
  --text-2: #ADA9C6;
  --text-3: #7B7699;

  --brand:      var(--brand-300);
  --brand-hover:var(--brand-200);
  --brand-soft: rgba(107, 165, 221, .14);
  --accent:     var(--red-400);

  --ring: rgba(107, 165, 221, .4);

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .45);
  --shadow-md: 0 6px 18px -4px rgba(0, 0, 0, .55);
  --shadow-lg: 0 18px 40px -12px rgba(0, 0, 0, .65);
  --shadow-xl: 0 32px 64px -20px rgba(0, 0, 0, .75);
  --shadow-brand: 0 12px 28px -8px rgba(15, 99, 174, .55);
}

/*
  .wash — the pale blue band every page opens with (hero, page mastheads). It
  is a background treatment only: text, cards and buttons inside keep the
  page's own tokens, which is the whole point of a white-and-blue design.
  The gradient fades to the page background at the bottom so the band joins the
  first white section with no hard seam.
*/
.wash {
  /* #F4F9FD is brand-50 at roughly 45% over white — written out rather than
     computed so the gradient never depends on color-mix support. */
  background:
    linear-gradient(180deg,
      var(--brand-50) 0%,
      #F4F9FD 45%,
      var(--bg) 100%);
}
[data-theme="dark"] .wash {
  background:
    linear-gradient(180deg,
      #171142 0%,
      #100C2E 48%,
      var(--bg) 100%);
}

/* ==========================================================================
   2. Reset & base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

img, svg, video { display: block; max-width: 100%; height: auto; }

a {
  color: var(--brand);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}
a:hover { color: var(--brand-hover); }

button, input, textarea, select { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

::selection { background: var(--brand-500); color: #fff; }

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: var(--space-6) 0;
}

/* Scrollbar — subtle, theme-aware */
* { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: var(--r-pill);
  border: 3px solid transparent;
  background-clip: content-box;
}
*::-webkit-scrollbar-thumb:hover { background-color: var(--text-3); background-clip: content-box; }

/* Skip link — keyboard users land here first */
.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 1000;
  padding: .7rem 1.1rem;
  background: var(--brand);
  color: #fff;
  border-radius: var(--r-sm);
  font-weight: 600;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: var(--space-4); color: #fff; }

/* ==========================================================================
   3. Layout
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--container-narrow); }
.container--wide { max-width: 1360px; }

.section {
  position: relative;
  padding-block: var(--section-y);
}
.section--tight { padding-block: clamp(2.5rem, 1.8rem + 3vw, 4.5rem); }
.section--soft { background: var(--bg-soft); }
.section--bordered { border-top: 1px solid var(--border); }

.grid { display: grid; gap: var(--space-5); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--gap-lg { gap: var(--space-6); }

/* Auto-fit grids collapse on their own — no breakpoint needed */
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid--auto-sm { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }

/* Asymmetric split used for feature/showcase rows */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: center;
}
.split--wide-left { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.split--wide-right { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
/* Top-align when one side is a tall grid — centring short copy against six
   cards strands it in the middle of a lot of empty space. */
.split--top { align-items: start; }

.stack { display: flex; flex-direction: column; gap: var(--space-4); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }

@media (max-width: 960px) {
  .split, .split--wide-left, .split--wide-right { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Media blocks drop below their copy on narrow screens regardless of source order */
  .split > .split-media { order: 2; }
}
@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

/* ==========================================================================
   4. Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -.022em;
  color: var(--text);
  text-wrap: balance;
}

.display { font-size: var(--fs-display); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; }
h1, .h1 { font-size: var(--fs-h1); }
h2, .h2 { font-size: var(--fs-h2); }
h3, .h3 { font-size: var(--fs-h3); line-height: 1.28; letter-spacing: -.015em; }
h4, .h4 { font-size: var(--fs-h4); line-height: 1.4; letter-spacing: -.01em; }

p { text-wrap: pretty; }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.65;
  color: var(--text-2);
}

.muted { color: var(--text-2); }
.dim { color: var(--text-3); }
.small { font-size: var(--fs-sm); }
.tiny { font-size: var(--fs-xs); }
.mono { font-family: var(--font-mono); font-size: .85em; letter-spacing: -.01em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand);
}
/* The red dot from the logo, repeated as a section marker. It is the one place
   the logo's red appears on every page, which is what ties the site to the
   mark without the colour ever becoming a surface. */
.eyebrow::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red-500);
}

.gradient-text {
  background: linear-gradient(100deg, var(--navy-800) 0%, var(--brand-600) 52%, var(--brand-400) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
[data-theme="dark"] .gradient-text {
  background: linear-gradient(100deg, var(--brand-200) 0%, var(--brand-300) 55%, #CFE3F6 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

/* Section heading block */
.section-head { max-width: 720px; margin-bottom: clamp(2.2rem, 1.6rem + 2vw, 3.5rem); }
.section-head > * + * { margin-top: var(--space-3); }
.section-head--center { margin-inline: auto; text-align: center; }
/* The dot reads well centred too, so it is kept rather than hidden. */

/* Long-form copy */
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; color: var(--text-2); }
.prose li + li { margin-top: .45em; }
.prose strong { color: var(--text); font-weight: 650; }

/* ==========================================================================
   5. Components
   ========================================================================== */

/* — Buttons ————————————————————————————————————— */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  --btn-border: transparent;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .78rem 1.4rem;
  font-family: var(--font-display);
  font-size: .945rem;
  font-weight: 650;
  letter-spacing: -.008em;
  line-height: 1.2;
  white-space: nowrap;
  border: 1px solid var(--btn-border);
  border-radius: var(--r-sm);
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  user-select: none;
  transition: transform var(--dur-fast) var(--ease),
              box-shadow var(--dur) var(--ease),
              background-color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.05em; height: 1.05em; flex: none; }

.btn--primary {
  --btn-bg: var(--brand-600);
  --btn-fg: #fff;
  --btn-border: var(--brand-600);
  box-shadow: var(--shadow-brand);
}
.btn--primary:hover {
  --btn-bg: var(--brand-700);
  --btn-border: var(--brand-700);
  color: #fff;
  box-shadow: 0 16px 34px -10px rgba(27, 79, 216, .5);
}
[data-theme="dark"] .btn--primary {
  --btn-bg: var(--brand-500);
  --btn-border: var(--brand-500);
}
[data-theme="dark"] .btn--primary:hover {
  --btn-bg: var(--brand-400);
  --btn-border: var(--brand-400);
}

.btn--secondary {
  --btn-bg: var(--surface);
  --btn-fg: var(--text);
  --btn-border: var(--border-strong);
  box-shadow: var(--shadow-xs);
}
.btn--secondary:hover {
  --btn-border: var(--brand);
  --btn-fg: var(--brand);
  box-shadow: var(--shadow-sm);
}

.btn--ghost { --btn-fg: var(--text-2); }
.btn--ghost:hover { --btn-fg: var(--brand); --btn-bg: var(--brand-soft); }

.btn--link {
  padding: 0;
  --btn-fg: var(--brand);
  border: 0;
}
.btn--link:hover { --btn-fg: var(--brand-hover); transform: none; }
.btn--link svg { transition: transform var(--dur) var(--ease); }
.btn--link:hover svg { transform: translateX(3px); }

.btn--lg { padding: .95rem 1.75rem; font-size: 1.02rem; border-radius: var(--r-md); }
.btn--sm { padding: .5rem .9rem; font-size: .85rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }

/* — Pills / badges ————————————————————————————————— */
.pill {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .34rem .78rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  line-height: 1.4;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-2);
  white-space: nowrap;
}
.pill--brand { border-color: transparent; background: var(--brand-soft); color: var(--brand); }
a.pill { color: var(--text-2); transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease); }
a.pill:hover { color: var(--brand); border-color: var(--brand); transform: translateY(-1px); }
.pill svg { flex: none; }
/* Sits on the pale blue wash, so it needs a white surface and a real edge to
   separate from it — a tinted fill would disappear into the band. */
.pill--live {
  background: var(--surface);
  border-color: var(--brand-200);
  color: var(--brand-700);
  box-shadow: var(--shadow-xs);
}
[data-theme="dark"] .pill--live {
  background: var(--surface-2);
  border-color: var(--border-strong);
  color: var(--brand-300);
}
.pill--live .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ok-500);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, .55);
  animation: pulse-dot 2.4s var(--ease) infinite;
}
@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(16, 185, 129, .5); }
  70%  { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* — Cards ——————————————————————————————————————— */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: clamp(1.35rem, 1.1rem + .8vw, 1.85rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xs);
  transition: transform var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out);
}
.card--hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}
.card--flat { box-shadow: none; }
.card--inset { background: var(--bg-soft); }
.card h3, .card h4 { margin: 0; }
.card p { color: var(--text-2); font-size: .95rem; }

/*
  Solution card — the primary content object of the site. A hairline gradient
  bar animates in on hover to tie the card to its solution accent colour, set
  per-card through --card-accent.
*/
.solution-card {
  --card-accent: var(--brand-500);
  overflow: hidden;
  isolation: isolate;
}
.solution-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--card-accent), transparent 85%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-slow) var(--ease-out);
}
.solution-card:hover::before { transform: scaleX(1); }
.solution-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -30%;
  top: -60%;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--card-accent) 0%, transparent 68%);
  opacity: 0;
  transition: opacity var(--dur-slow) var(--ease);
}
.solution-card:hover::after { opacity: .13; }

/* Whole-card links must not inherit the anchor colour */
a.card, a.card:hover { color: var(--text); }

.solution-card .solution-card__tagline {
  margin-top: -.4rem;
  font-family: var(--font-display);
  font-size: .92rem;
  font-weight: 650;
  letter-spacing: -.01em;
  color: var(--card-accent);
}
/* Pushes the call to action to the bottom edge so cards in a row line up */
.solution-card .btn--link { margin-top: auto; --btn-fg: var(--card-accent); }
.solution-card:hover .btn--link svg { transform: translateX(3px); }

/* — Illustrations ————————————————————————————————
   Every ArtXxx.razor component paints from these seven properties and nothing
   else, so the whole illustration set rethemes with the palette and inverts
   correctly in dark mode. */
.art {
  --art-navy:  var(--navy-800);
  --art-blue:  var(--brand-600);
  --art-blue2: var(--brand-300);
  --art-soft:  var(--brand-50);
  --art-soft2: var(--brand-100);
  --art-line:  var(--border-strong);
  --art-white: var(--surface);
  --art-red:   var(--red-500);
  display: block;
  width: 100%;
  height: auto;
}
[data-theme="dark"] .art {
  --art-navy:  var(--brand-200);
  --art-blue:  var(--brand-400);
  --art-blue2: var(--brand-600);
  --art-soft:  rgba(107, 165, 221, .10);
  --art-soft2: rgba(107, 165, 221, .22);
  --art-white: var(--surface-2);
}

/* The band an illustration sits in at the top of a card or panel. */
.art-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-md);
  padding: clamp(.6rem, .4rem + .8vw, 1.1rem);
  background:
    radial-gradient(120% 120% at 80% 0%, var(--brand-50) 0%, transparent 62%),
    var(--bg-soft);
  border: 1px solid var(--border);
}
[data-theme="dark"] .art-band {
  background:
    radial-gradient(120% 120% at 80% 0%, rgba(107, 165, 221, .16) 0%, transparent 62%),
    var(--bg-soft);
}

/* — Icon tiles ————————————————————————————————— */
.icon-tile {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: var(--r-md);
  background: var(--brand-soft);
  color: var(--brand);
  border: 1px solid transparent;
}
.icon-tile svg { width: 22px; height: 22px; }
.icon-tile--lg { width: 56px; height: 56px; border-radius: var(--r-lg); }
.icon-tile--lg svg { width: 26px; height: 26px; }
.icon-tile--sm { width: 34px; height: 34px; border-radius: var(--r-sm); }
.icon-tile--sm svg { width: 17px; height: 17px; }
.icon-tile--outline {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text-2);
}
/* Fallback first: without color-mix the tile still gets the brand tint. */
.icon-tile--accent { background: var(--brand-soft); color: var(--card-accent, var(--brand-600)); }
@supports (background: color-mix(in srgb, red, blue)) {
  .icon-tile--accent { background: color-mix(in srgb, var(--card-accent, var(--brand-600)) 12%, transparent); }
}

/* — Feature list ————————————————————————————————— */
.check-list { list-style: none; padding: 0; display: grid; gap: .7rem; }
.check-list li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: .7rem;
  align-items: start;
  color: var(--text-2);
  font-size: .95rem;
}
.check-list li::before {
  content: "";
  margin-top: .38em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2301519A' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
[data-theme="dark"] .check-list li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236BA5DD' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
}
.check-list--2col { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem 2rem; }
@media (max-width: 700px) { .check-list--2col { grid-template-columns: 1fr; } }

/* — Stats ———————————————————————————————————————— */
.stat { display: flex; flex-direction: column; gap: .2rem; }
.stat__value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1;
  color: var(--text);
}
.stat__value .unit { color: var(--red-500); }
.stat__label { font-size: var(--fs-sm); color: var(--text-2); }

.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: var(--space-5);
}
.stat-strip .stat { padding-left: var(--space-5); border-left: 1px solid var(--border); }
.stat-strip .stat:first-child { padding-left: 0; border-left: 0; }
@media (max-width: 640px) {
  .stat-strip .stat { padding-left: 0; border-left: 0; }
}

/* — Steps / process ————————————————————————————— */
.steps { counter-reset: step; display: grid; gap: var(--space-5); }
.step { position: relative; padding-left: 4rem; }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: -.15rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--brand);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: var(--brand-soft);
}
.step::after {
  content: "";
  position: absolute;
  left: 21px;
  top: 3rem;
  bottom: -2.1rem;
  width: 1px;
  background: linear-gradient(var(--border), transparent);
}
.step:last-child::after { display: none; }
.step h4 { margin-bottom: .35rem; }
.step p { color: var(--text-2); font-size: .95rem; }

/* — Timeline ————————————————————————————————————
   A rail with a node per entry. The rail is drawn on the list so it runs the
   full height without a per-item connector to hide on the last row. */
.timeline {
  /* --rail is the gutter reserved for the year label and the vertical line.
     Everything else positions against it, so the layout stays in one piece. */
  --rail: clamp(4.75rem, 3rem + 5vw, 8rem);
  position: relative;
  list-style: none;
  padding: 0 0 0 var(--rail);
  margin: 0;
  display: grid;
  gap: clamp(1.8rem, 1.4rem + 1.2vw, 2.6rem);
}
.timeline::before {
  content: "";
  position: absolute;
  left: calc(var(--rail) - 1.25rem);
  top: .6rem;
  bottom: .6rem;
  width: 1px;
  background: linear-gradient(var(--border), var(--border) 85%, transparent);
}
.timeline__item { position: relative; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: calc(-1.25rem - 4px);
  top: .5rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px var(--bg-soft);
}
.timeline__year {
  position: absolute;
  left: calc(var(--rail) * -1);
  top: 0;
  width: calc(var(--rail) - 2rem);
  text-align: right;
  font-family: var(--font-display);
  font-size: .92rem;
  font-weight: 750;
  letter-spacing: -.02em;
  color: var(--text-3);
}
.timeline__body h3 { margin-bottom: .3rem; }
.timeline__body p { color: var(--text-2); font-size: .95rem; max-width: 72ch; }

@media (max-width: 640px) {
  .timeline { --rail: 1.6rem; }
  .timeline::before { left: 4px; }
  .timeline__item::before { left: -1.6rem; }
  .timeline__year {
    position: static;
    display: block;
    width: auto;
    text-align: left;
    margin-bottom: .2rem;
    color: var(--brand);
  }
}

/* — Accordion (FAQ) ————————————————————————————— */
.accordion { border-top: 1px solid var(--border); }
.accordion__item { border-bottom: 1px solid var(--border); }
.accordion__item > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 1.25rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 1.03rem;
  font-weight: 650;
  letter-spacing: -.012em;
  color: var(--text);
  transition: color var(--dur-fast) var(--ease);
}
.accordion__item > summary::-webkit-details-marker { display: none; }
.accordion__item > summary:hover { color: var(--brand); }
.accordion__item > summary::after {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23837FA0' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / 11px no-repeat;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.accordion__item[open] > summary::after { transform: rotate(180deg); border-color: var(--brand); }
.accordion__panel {
  padding-bottom: 1.35rem;
  color: var(--text-2);
  font-size: .96rem;
  max-width: 68ch;
  animation: fade-up-sm var(--dur) var(--ease-out);
}
@keyframes fade-up-sm {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

/* — Header / navigation ————————————————————————— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck,
.no-js .site-header {
  background: var(--surface-alpha);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

/*
  No colour override while the header is unstuck: every page opens with the
  pale blue .wash band, so the header's normal dark-on-light treatment reads
  correctly both over the masthead and over the white sections below it.
*/
.site-header .container {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

/*
  Brand lockup. juviq-logo.png is the supplied artwork with its white ground
  converted to real alpha, so it drops onto the pale .wash band and the tinted
  footer with no matte box. (mix-blend-mode would not work here: the sticky
  header creates its own stacking context, leaving nothing to blend against.)

  In dark mode the mark's navy would disappear into the background, so it is
  given a white plate — the standard treatment for a dark-surface lockup.
*/
.brand { display: inline-flex; align-items: center; flex: none; }
.brand__logo {
  height: 44px;
  width: auto;
  flex: none;
}
[data-theme="dark"] .brand__logo {
  background: #fff;
  padding: 5px 8px;
  border-radius: var(--r-sm);
}
.site-footer .brand__logo { height: 48px; }
@media (max-width: 420px) { .brand__logo { height: 36px; } }

/* Retained for any place that needs the wordmark as text (e.g. print). */
.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -.032em;
  line-height: 1.05;
  color: var(--text);
}
.brand__sub {
  display: block;
  font-family: var(--font-body);
  font-size: .61rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-3);
}

.nav { display: flex; align-items: center; gap: .15rem; margin-left: auto; }
.nav__link {
  position: relative;
  padding: .5rem .8rem;
  border-radius: var(--r-sm);
  font-size: .935rem;
  font-weight: 550;
  color: var(--text-2);
  transition: color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.nav__link:hover { color: var(--text); background: var(--bg-inset); }
.nav__link.active { color: var(--brand); }
.nav__link.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: .12rem;
  transform: translateX(-50%);
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
}

.nav-actions { display: flex; align-items: center; gap: .5rem; flex: none; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease),
              background-color var(--dur-fast) var(--ease);
}
.icon-btn:hover { color: var(--brand); border-color: var(--brand); }
.icon-btn svg { width: 18px; height: 18px; }

/* Theme toggle swaps which glyph is visible */
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.nav-toggle { display: none; }

/* Mobile drawer */
@media (max-width: 1000px) {
  .nav-toggle { display: grid; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: .15rem;
    margin: 0;
    padding: var(--space-4) var(--gutter) var(--space-6);
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__link { padding: .8rem .9rem; font-size: 1rem; }
  .nav__link.active::after { display: none; }
  .nav .btn { margin-top: var(--space-3); }
  .nav-actions .btn--cta { display: none; }
}

/* — Hero ————————————————————————————————————————— */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 2rem + 8vw, 7rem) clamp(4rem, 2.5rem + 7vw, 7rem);
  /* The sticky header sits on the hero, so pull it up behind it */
  margin-top: calc(var(--header-h) * -1);
  padding-top: calc(var(--header-h) + clamp(3rem, 1.5rem + 7vw, 6rem));
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2.5rem, 1rem + 5vw, 5rem); align-items: center; }
@media (max-width: 1000px) { .hero__grid { grid-template-columns: 1fr; } }

.hero__copy > * + * { margin-top: var(--space-4); }
.hero__title { font-size: var(--fs-display); font-weight: 800; letter-spacing: -.038em; line-height: 1.03; }
.hero__lead { font-size: clamp(1.03rem, .96rem + .5vw, 1.22rem); color: var(--text-2); max-width: 58ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); padding-top: var(--space-2); }

/* Ambient background: aurora blobs + fine grid, both purely decorative */
.aurora { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.aurora::before, .aurora::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
}
.aurora::before {
  width: 46vw; height: 46vw;
  min-width: 320px; min-height: 320px;
  top: -18%; left: -8%;
  background: radial-gradient(circle, var(--brand-500) 0%, transparent 68%);
  /* Strong enough on the pale wash to read as brand colour, light enough that
     body copy over it keeps its contrast ratio. */
  opacity: .22;
  animation: drift-a 22s var(--ease) infinite alternate;
}
.aurora::after {
  width: 40vw; height: 40vw;
  min-width: 280px; min-height: 280px;
  bottom: -22%; right: -6%;
  background: radial-gradient(circle, var(--navy-600) 0%, transparent 68%);
  opacity: .2;
  animation: drift-b 26s var(--ease) infinite alternate;
}
[data-theme="dark"] .aurora::before { opacity: .38; }
[data-theme="dark"] .aurora::after { opacity: .28; }
@keyframes drift-a { to { transform: translate3d(6%, 8%, 0) scale(1.12); } }
@keyframes drift-b { to { transform: translate3d(-7%, -6%, 0) scale(1.08); } }

/* Blueprint grid behind the masthead. Blue-tinted rather than neutral grey so
   it belongs to the palette instead of looking like a rendering artefact. */
.grid-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(27, 79, 216, .07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(27, 79, 216, .07) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 20%, transparent 78%);
}
[data-theme="dark"] .grid-lines {
  background-image:
    linear-gradient(to right, rgba(143, 178, 246, .10) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(143, 178, 246, .10) 1px, transparent 1px);
}

/* — App mock (hero visual) ————————————————————— */
.mock {
  position: relative;
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}
.mock__bar {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--border);
  /* brand-50 rather than bg-soft: the mock sits on the pale wash, and a
     neutral grey chrome bar would blend straight into it. */
  background: var(--brand-50);
}
[data-theme="dark"] .mock__bar { background: var(--surface-2); }
.mock__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--brand-200); }
[data-theme="dark"] .mock__dot { background: var(--border-strong); }
.mock__title {
  margin-left: .6rem;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--text-3);
}
.mock__body { padding: 1.1rem; display: grid; gap: .85rem; }

.mock-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.mock-kpi {
  padding: .7rem .8rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--surface-2);
}
.mock-kpi span { display: block; font-size: .64rem; letter-spacing: .07em; text-transform: uppercase; color: var(--text-3); }
.mock-kpi b { font-family: var(--font-display); font-size: 1.02rem; letter-spacing: -.02em; }

/* Bar chart drawn with CSS only — no chart library on a marketing page */
.mock-chart {
  display: flex;
  align-items: flex-end;
  gap: .42rem;
  height: 108px;
  padding: .8rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--surface-2);
}
.mock-chart i {
  flex: 1;
  border-radius: 3px 3px 1px 1px;
  background: linear-gradient(var(--brand-400), var(--brand-600));
  transform-origin: bottom;
  animation: bar-rise 1s var(--ease-out) backwards;
}
.mock-chart i:nth-child(even) { background: linear-gradient(var(--navy-500), var(--navy-800)); opacity: .9; }
@keyframes bar-rise { from { transform: scaleY(.05); opacity: 0; } to { transform: scaleY(1); opacity: 1; } }

.mock-lines { display: grid; gap: .5rem; }
.mock-line { height: 9px; border-radius: var(--r-pill); background: var(--bg-inset); }

/* Floating chips beside the mock */
.float-chip {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem .8rem;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  font-size: .78rem;
  font-weight: 600;
  color: var(--text);
  animation: float-y 5s var(--ease) infinite alternate;
}
/* Anchored to the mock's outer corners so they never sit on top of its
   content. .split-media is position:relative, which is what they offset from. */
.float-chip--a { left: -1.5rem; bottom: -1.1rem; }
.float-chip--b { right: -1.5rem; top: -1.1rem; animation-delay: -2.4s; }
@media (max-width: 1120px) {
  .float-chip--a { left: -.5rem; }
  .float-chip--b { right: -.5rem; }
}
@keyframes float-y { to { transform: translateY(-11px); } }
@media (max-width: 560px) { .float-chip { display: none; } }

/* — Logo / trust marquee ————————————————————————— */
.marquee {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  display: flex;
  gap: clamp(2rem, 1rem + 3vw, 4rem);
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -.02em;
  color: var(--text-3);
  white-space: nowrap;
  transition: color var(--dur) var(--ease);
}
.marquee__item:hover { color: var(--text-2); }
.marquee__item svg { width: 19px; height: 19px; opacity: .75; }

/* — Tabs (solution switcher) ————————————————————— */
.tabs { display: flex; flex-wrap: wrap; gap: .4rem; padding: .35rem; border-radius: var(--r-md); background: var(--bg-inset); }
.tabs__btn {
  flex: 1 1 auto;
  padding: .6rem 1rem;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 620;
  color: var(--text-2);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.tabs__btn:hover { color: var(--text); }
.tabs__btn.active { background: var(--surface); color: var(--brand); box-shadow: var(--shadow-sm); }

/* — Tables ————————————————————————————————————— */
/* Wrapper scrolls on its own so a wide table never makes the page scroll. */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}
.table { width: 100%; border-collapse: collapse; min-width: 680px; }
.table th, .table td {
  padding: 1rem 1.15rem;
  text-align: left;
  vertical-align: middle;
  font-size: .93rem;
  border-bottom: 1px solid var(--border);
}
.table thead th {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
  background: var(--bg-soft);
  white-space: nowrap;
}
.table tbody tr:last-child th, .table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background-color var(--dur-fast) var(--ease); }
.table tbody tr:hover { background: var(--bg-soft); }
.table tbody th { font-weight: 650; }
.table-lead { display: inline-flex; align-items: center; gap: .65rem; white-space: nowrap; }

/* — Quote / testimonial ————————————————————————— */
.quote { position: relative; padding-top: var(--space-5); }
.quote::before {
  content: "\201C";
  position: absolute;
  top: -.35em;
  left: -.05em;
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 1;
  color: var(--brand);
  opacity: .18;
}
.quote__text {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, .98rem + .5vw, 1.28rem);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: -.014em;
  color: var(--text);
}
.quote__by { display: flex; align-items: center; gap: .8rem; margin-top: var(--space-4); }
.avatar {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  flex: none;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-family: var(--font-display);
  font-weight: 750;
  font-size: .9rem;
  letter-spacing: -.02em;
}

/* — Forms ———————————————————————————————————————— */
.field { display: grid; gap: .4rem; }
.field > label { font-size: .855rem; font-weight: 600; color: var(--text); }
.field .req { color: var(--danger-500); }
.field .hint { font-size: var(--fs-xs); color: var(--text-3); }

.input, .textarea, .select {
  width: 100%;
  padding: .72rem .9rem;
  font-size: .95rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--ring);
}
.textarea { resize: vertical; min-height: 130px; line-height: 1.6; }
.select {
  appearance: none;
  padding-right: 2.4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23837FA0' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .85rem center;
  background-size: 15px;
}
.field--invalid .input, .field--invalid .textarea, .field--invalid .select { border-color: var(--danger-500); }
.field__error { font-size: var(--fs-xs); color: var(--danger-500); font-weight: 500; }

.form-note {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  padding: .85rem 1rem;
  border-radius: var(--r-sm);
  font-size: .88rem;
  line-height: 1.55;
}
.form-note--ok { background: rgba(16, 185, 129, .10); color: var(--ok-500); border: 1px solid rgba(16, 185, 129, .28); }
.form-note--err { background: rgba(239, 68, 68, .09); color: var(--danger-500); border: 1px solid rgba(239, 68, 68, .26); }
.form-note svg { width: 18px; height: 18px; flex: none; margin-top: .1rem; }

/* — Contact detail row ————————————————————————— */
.contact-row { display: flex; gap: var(--space-4); align-items: flex-start; }
.contact-row h4 { font-size: .95rem; margin-bottom: .15rem; }
.contact-row p, .contact-row a { font-size: .93rem; color: var(--text-2); }
.contact-row a:hover { color: var(--brand); }

/* — CTA band ————————————————————————————————————— */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  padding: clamp(2.2rem, 1.5rem + 3.5vw, 4rem);
  background: linear-gradient(135deg, var(--navy-800) 0%, var(--brand-700) 45%, var(--brand-500) 115%);
  color: #fff;
  box-shadow: var(--shadow-xl);
}
.cta-band h2, .cta-band p { color: #fff; }
.cta-band p { opacity: .88; }
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.22) 1px, transparent 0);
  background-size: 22px 22px;
  opacity: .5;
  mask-image: linear-gradient(120deg, #000, transparent 65%);
  -webkit-mask-image: linear-gradient(120deg, #000, transparent 65%);
  pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band .btn--primary {
  --btn-bg: #fff;
  --btn-fg: var(--brand-700);
  --btn-border: #fff;
  box-shadow: 0 10px 26px -10px rgba(0, 0, 0, .5);
}
.cta-band .btn--primary:hover { --btn-bg: #F2F3FF; --btn-fg: var(--brand-800); --btn-border: #F2F3FF; color: var(--brand-800); }
.cta-band .btn--secondary {
  --btn-bg: rgba(255, 255, 255, .08);
  --btn-fg: #fff;
  --btn-border: rgba(255, 255, 255, .38);
}
.cta-band .btn--secondary:hover { --btn-bg: rgba(255, 255, 255, .16); --btn-fg: #fff; --btn-border: #fff; }

/* — Page header (inner pages) ————————————————— */
.page-head {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 2rem + 5vw, 5.5rem) clamp(2.5rem, 1.8rem + 3vw, 4rem);
  margin-top: calc(var(--header-h) * -1);
  padding-top: calc(var(--header-h) + clamp(2.5rem, 1.5rem + 5vw, 5rem));
  border-bottom: 1px solid var(--border);
}
.page-head__inner { position: relative; z-index: 1; max-width: 760px; }
.page-head__inner > * + * { margin-top: var(--space-4); }

.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; font-size: var(--fs-xs); color: var(--text-3); }
.breadcrumb a { color: var(--text-3); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb span[aria-current] { color: var(--text-2); font-weight: 550; }

/* — Footer ————————————————————————————————————— */
.site-footer {
  padding-block: clamp(3rem, 2rem + 4vw, 5rem) var(--space-6);
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 1rem + 3vw, 3.5rem);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-col h4 {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: var(--space-4);
}
.footer-col ul { list-style: none; padding: 0; display: grid; gap: .65rem; }
.footer-col a { color: var(--text-2); font-size: .93rem; }
.footer-col a:hover { color: var(--brand); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
  font-size: var(--fs-sm);
  color: var(--text-3);
}
.social { display: flex; gap: .5rem; }
.social a {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  color: var(--text-2);
  transition: all var(--dur-fast) var(--ease);
}
.social a:hover { color: var(--brand); border-color: var(--brand); transform: translateY(-2px); }
.social svg { width: 17px; height: 17px; }

/* — Back to top ————————————————————————————————— */
.to-top {
  position: fixed;
  right: clamp(1rem, .5rem + 1.5vw, 2rem);
  bottom: clamp(1rem, .5rem + 1.5vw, 2rem);
  z-index: 90;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--dur) var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: var(--brand); border-color: var(--brand); }
.to-top svg { width: 18px; height: 18px; }

/* — Blazor reconnection overlay ————————————————
   Blazor Server adds/removes the .components-reconnect-* classes itself; the
   markup lives in _Layout.cshtml. */
#components-reconnect-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(7, 10, 22, .62);
  backdrop-filter: blur(3px);
  align-items: center;
  justify-content: center;
}
#components-reconnect-modal.components-reconnect-show { display: flex; }
#components-reconnect-modal.components-reconnect-hide { display: none; }
#components-reconnect-modal .reconnect-failed-msg { display: none; }
#components-reconnect-modal.components-reconnect-failed .reconnect-msg { display: none; }
#components-reconnect-modal.components-reconnect-failed .reconnect-failed-msg { display: block; }
.reconnect-box {
  min-width: 280px;
  padding: 1.6rem 2rem;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xl);
}
.reconnect-title { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--text); }
.reconnect-msg, .reconnect-failed-msg { font-size: .85rem; color: var(--text-2); margin-top: .35rem; }
.reconnect-failed-msg { color: var(--danger-500); }
.reconnect-failed-msg button {
  margin-left: .5rem;
  padding: .25rem .8rem;
  font-size: .8rem;
  font-weight: 600;
  color: #fff;
  background: var(--brand-600);
  border: 0;
  border-radius: var(--r-xs);
  cursor: pointer;
}

/* ==========================================================================
   5b. Admin panel
   --------------------------------------------------------------------------
   Everything from here to the utilities is behind the /admin sign-in. It reuses
   the same tokens and components as the public site, so there is one design
   system, not two.
   ========================================================================== */

/* — Sign-in screen ————————————————————————————— */
.auth-page { min-height: 100dvh; background: var(--bg-soft); }
.auth-shell {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: var(--gutter);
}
.auth-card {
  width: 100%;
  max-width: 420px;
  padding: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
}
.auth-card__brand { margin-bottom: var(--space-6); }
.auth-card h1 { margin-bottom: .3rem; }

/* — Admin chrome ————————————————————————————————— */
.admin-bar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}
.admin-bar .container {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  min-height: var(--header-h);
}
.admin-bar .nav-actions { margin-left: auto; }
.admin-main { padding-block: clamp(1.75rem, 1.4rem + 1.6vw, 2.75rem) var(--space-9); }

.admin-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}
.admin-toolbar .tabs { flex: none; }

.admin-search {
  position: relative;
  flex: 1 1 260px;
  display: flex;
  align-items: center;
}
.admin-search svg {
  position: absolute;
  left: .8rem;
  width: 17px;
  height: 17px;
  color: var(--text-3);
  pointer-events: none;
}
.admin-search .input { padding-left: 2.4rem; }

/* — Enquiry table ————————————————————————————————— */
.admin-table tbody tr.is-unread { background: var(--brand-50); }
[data-theme="dark"] .admin-table tbody tr.is-unread { background: rgba(107, 165, 221, .08); }
.admin-table tbody tr.is-unread strong { color: var(--text); }
.admin-table td { vertical-align: top; }
.nowrap { white-space: nowrap; }

.unread-dot {
  display: block;
  width: 9px;
  height: 9px;
  margin-top: .35rem;
  border-radius: 50%;
  background: var(--brand-600);
}
.unread-dot.is-read { background: transparent; border: 1.5px solid var(--border-strong); }

/* — Detail drawer ————————————————————————————————
   A panel rather than a modal: the admin keeps the list in view while reading,
   which is how triaging an inbox actually works. */
.drawer-scrim {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(21, 15, 63, .45);
  backdrop-filter: blur(2px);
  animation: fade-in var(--dur) var(--ease);
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 201;
  width: min(560px, 100vw);
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow-xl);
  animation: drawer-in var(--dur) var(--ease-out);
}
@keyframes drawer-in { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }

.drawer__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5);
  border-bottom: 1px solid var(--border);
}
.drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-5);
}
.drawer__foot {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding: var(--space-5);
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 8rem) minmax(0, 1fr);
  gap: .6rem var(--space-4);
  margin: 0;
}
.detail-grid dt { font-size: var(--fs-sm); color: var(--text-3); }
.detail-grid dd { margin: 0; font-size: var(--fs-sm); color: var(--text); }
@media (max-width: 480px) {
  .detail-grid { grid-template-columns: 1fr; gap: .15rem; }
  .detail-grid dd { margin-bottom: .6rem; }
}

/* Visitor-written text: preserve their line breaks, and never let a pasted URL
   without spaces push the drawer wider than the viewport. */
.message-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--text-2);
  font-size: .95rem;
  line-height: 1.7;
}

/* — Destructive action ————————————————————————— */
.btn--danger {
  --btn-bg: var(--red-500);
  --btn-fg: #fff;
  --btn-border: var(--red-500);
}
.btn--danger:hover {
  --btn-bg: var(--red-600);
  --btn-border: var(--red-600);
  color: #fff;
}

/* — Honeypot ————————————————————————————————————
   Off-screen rather than display:none — some bots skip hidden fields. */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ==========================================================================
   6. Utilities
   ========================================================================== */

.text-center { text-align: center; }
.center-x { margin-inline: auto; }
.justify-center { justify-content: center; }
.items-start { align-items: flex-start; }
.flex-1 { flex: 1; }
.relative { position: relative; }
.full-w { width: 100%; }
.max-60 { max-width: 60ch; }
.max-72 { max-width: 72ch; }

.mt-0 { margin-top: 0; }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.mt-7 { margin-top: var(--space-7); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }
.mb-6 { margin-bottom: var(--space-6); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 640px) { .hide-sm { display: none !important; } }
/* .hide-md hides the desktop-only header CTA once the drawer takes over;
   .hide-lg hides the drawer's own CTA on desktop. They are complements. */
@media (max-width: 1000px) { .hide-md { display: none !important; } }
@media (min-width: 1001px) { .hide-lg { display: none !important; } }

/* ==========================================================================
   7. Motion
   ========================================================================== */

/* Scroll reveal — JS adds .is-visible via IntersectionObserver. Without JS the
   :not(.is-visible) rule never applies because the class is added by the
   observer, so content is visible by default (progressive enhancement). */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Stagger children of a revealed container */
.reveal-group > * { transition-delay: calc(var(--i, 0) * 70ms); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Print
   ========================================================================== */

@media print {
  .site-header, .site-footer, .to-top, .aurora, .grid-lines, .float-chip { display: none !important; }
  body { background: #fff; color: #000; }
  .section { padding-block: 1.5rem; }
}
