/* ===========================================================================
   Site chrome: header, navigation, CTA buttons, footer.
   Follows design/Unicorn.pm (Marketing website). Hand-written rather than
   Tailwind utilities so it needs no CSS rebuild to change.
   ======================================================================== */
:root {
  --uc-pink: #E6007E;
  --uc-pink-dark: #C4006C;
  --uc-pink-tint: #FFF7FB;
  --uc-ink: #111827;
  --uc-body: #374151;
  --uc-body2: #4B5563;
  --uc-blue: #425ad6;
  --uc-blue-tint: #DFE4FA;
  --uc-blue-soft: #F4F6FE;
  --uc-muted: #6B7280;
  --uc-faint: #9CA3AF;
  --uc-line: #E5E7EB;
  --uc-hairline: #F3F4F6;
  --uc-wash: #F9FAFB;
}

/* Page background, per the designs (body { background: #ffffff }). Set on
   html, not body: with html left transparent, a body background would paint
   over the hero wash, which sits at z-index -1. Without any background, the
   page is transparent and shows whatever the browser puts behind it (a dark
   canvas in forced-dark modes and some embedded previews). */
html { background-color: #fff; color-scheme: light; }

/* ------------------------------------------------------------------ header */
.uc-header { position: sticky; top: 0; z-index: 40; padding: 14px 20px 0; }
.uc-header-inner { position: relative; max-width: 1160px; margin: 0 auto; }

/* Floating pill bar: translucent over whatever scrolls beneath it. */
.uc-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: rgba(255, 255, 255, .6);
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 99px;
  padding: 9px 12px 9px 22px;
  box-shadow: 0 8px 28px rgba(17, 24, 39, .08), inset 0 1px 0 rgba(255, 255, 255, .8);
}
.uc-brand { display: flex; align-items: center; }
.uc-brand img { height: 30px; display: block; }

.uc-nav { display: flex; align-items: center; gap: 2px; font-size: 14.5px; font-weight: 500; }
.uc-nav a, .uc-nav button { white-space: nowrap; }
.uc-nav > a,
.uc-navtrigger {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 99px;
  color: var(--uc-body); background: none; border: 0;
  font: inherit; cursor: pointer;
  transition: background .15s, color .15s;
}
.uc-nav > a:hover, .uc-navtrigger:hover { background: var(--uc-wash); color: var(--uc-pink); }

/* Hover/focus dropdowns, no script. The padding-top keeps the pointer inside
   the hover area while it travels from the trigger to the panel. */
.uc-drop { position: relative; }
.uc-dropmenu {
  visibility: hidden; opacity: 0; transform: translateY(4px);
  transition: opacity .15s ease, transform .15s ease;
  position: absolute; top: 100%; left: 0; padding-top: 10px; z-index: 30;
}
.uc-drop:hover .uc-dropmenu,
.uc-drop:focus-within .uc-dropmenu { visibility: visible; opacity: 1; transform: translateY(0); }

.uc-panel {
  background: #fff; border: 1px solid var(--uc-hairline); border-radius: 16px;
  box-shadow: 0 12px 36px rgba(17, 24, 39, .10); padding: 10px;
}
.uc-featuregrid { display: grid; grid-template-columns: repeat(3, 210px); gap: 6px; }
.uc-featuregrid.is-wide { grid-template-columns: repeat(2, 250px); }
.uc-featuregrid a { display: block; padding: 14px; border-radius: 12px; color: var(--uc-ink); transition: background .15s; }
.uc-featuregrid a:hover { background: var(--uc-pink-tint); color: var(--uc-ink); }
.uc-feature-name { display: block; font-size: 14px; font-weight: 700; }
.uc-feature-desc { display: block; font-size: 12.5px; color: var(--uc-muted); line-height: 1.5; margin-top: 4px; white-space: normal; }

/* ------------------------------------------------------- language switcher */
.uc-langbtn {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--uc-line); background: #fff; border-radius: 99px;
  padding: 10px 14px; font-size: 13px; line-height: 19px; box-sizing: border-box;
  font-weight: 600; font-family: inherit; color: var(--uc-body);
  cursor: pointer; transition: border-color .15s;
}
.uc-langbtn:hover { border-color: var(--uc-pink); }
.uc-langmenu { left: auto; right: 0; }
.uc-langpanel { display: flex; flex-direction: column; gap: 2px; border-radius: 12px; min-width: 180px; padding: 8px; }
.uc-langhead { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--uc-faint); padding: 4px 12px 6px; }
.uc-langopt { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--uc-body); }
.uc-langopt:hover { background: var(--uc-wash); color: var(--uc-ink); }
.uc-langopt.is-on { background: var(--uc-pink-tint); color: var(--uc-pink); }
.uc-langopt .uc-check { margin-left: auto; display: inline-flex; }
.uc-flag { border-radius: 50%; display: block; flex-shrink: 0; }
/* func/flag.html emits a bare <svg> with no intrinsic size. Without a size
   here it expands to fill whatever box it lands in. */
.lang-switch__flag { width: 16px; height: 16px; border-radius: 50%; display: block; flex-shrink: 0; }
.lang-switch__code { font-size: 10px; font-weight: 700; color: var(--uc-body); }

/* ------------------------------------------------------------------ buttons */
.uc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 22px; border-radius: 99px; border: 0;
  font-size: 14.5px; font-weight: 600; letter-spacing: .3px; font-family: inherit;
  cursor: pointer; text-align: center;
}
/* The sheen moves on hover rather than the colour changing. */
.uc-btn-primary {
  background: linear-gradient(100deg, #425ad6 0%, #7c3aed 50%, #425ad6 100%);
  background-size: 200% 100%; background-position: 0% 0%;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(66, 90, 214, .35);
  transition: background-position .6s ease, box-shadow .3s ease;
}
.uc-btn-primary:hover { color: #fff !important; background-position: 100% 0%; box-shadow: 0 6px 18px rgba(66, 90, 214, .4); }
.uc-btn-secondary { background: #fff; color: var(--uc-ink) !important; border: 1px solid var(--uc-line); transition: border-color .15s, color .15s; }
.uc-btn-secondary:hover { border-color: var(--uc-pink); color: var(--uc-pink) !important; }
.uc-btn-lg { padding: 14px 28px; font-size: 16px; }
.uc-btn svg { flex-shrink: 0; }

/* --------------------------------------------------------------- mobile nav */
.uc-mob { display: none; position: static; }
.uc-mobtn {
  width: 40px; height: 40px; border-radius: 99px; border: 1px solid var(--uc-line);
  background: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.uc-mobtn:hover { border-color: var(--uc-pink); }
.uc-drawer {
  visibility: hidden; opacity: 0; transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease;
  position: absolute; top: calc(100% + 10px); left: 0; right: 0; z-index: 50;
}
.uc-mob:focus-within .uc-drawer { visibility: visible; opacity: 1; transform: translateY(0); }
.uc-drawer-panel {
  display: flex; flex-direction: column; gap: 2px; background: #fff;
  border: 1px solid var(--uc-hairline); border-radius: 20px;
  box-shadow: 0 16px 48px rgba(17, 24, 39, .14); padding: 14px;
}
.uc-drawer a { padding: 12px 14px; border-radius: 12px; font-size: 16px; font-weight: 600; color: var(--uc-ink); }
.uc-drawer a:hover { color: var(--uc-pink); }
.uc-drawer .uc-sub { padding: 8px 14px 8px 30px; font-size: 14.5px; color: var(--uc-muted); font-weight: 500; }
.uc-drawer-langs { display: flex; gap: 8px; padding: 10px 14px 2px; }
.uc-drawer-langs a, .uc-drawer-langs span {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px;
  border: 1px solid var(--uc-line); border-radius: 99px; font-size: 13.5px; font-weight: 600;
  color: var(--uc-body);
}
.uc-drawer-langs .is-on { background: var(--uc-pink-tint); border-color: var(--uc-pink); color: var(--uc-pink); }

/* ------------------------------------------------------------------ footer */
.uc-footer { border-top: 1px solid var(--uc-hairline); padding: 40px 48px 24px; }
.uc-footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 40px; }
.uc-footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.uc-footer-brand img { height: 32px; display: block; }
.uc-social {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border: 1px solid var(--uc-line); border-radius: 8px;
  color: var(--uc-muted); transition: color .15s, border-color .15s;
}
.uc-social:hover { color: var(--uc-pink); border-color: var(--uc-pink); }
.uc-footer-head { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--uc-faint); margin-bottom: 12px; }
.uc-footer-links { display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.uc-footer-links a { color: var(--uc-body); }
.uc-footer-links a:hover { color: var(--uc-pink); }
.uc-footer-bottom { max-width: 1200px; margin: 32px auto 0; padding-top: 20px; border-top: 1px solid var(--uc-hairline); font-size: 13px; color: var(--uc-faint); text-align: center; }
/* The language switch sits quietly under the copyright line. */
.uc-footer-bottom { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.uc-footer-lang { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--uc-faint); }
.uc-footer-lang svg { flex-shrink: 0; opacity: .8; }
.uc-footer-lang a { color: var(--uc-faint); transition: color .15s; }
.uc-footer-lang a:hover { color: var(--uc-pink); }
.uc-footer-lang [aria-current] { color: var(--uc-muted); }
.uc-footer-lang-sep { opacity: .6; }

/* ------------------------------------------------------------- responsive */
@media (max-width: 1120px) {
  .uc-nav { display: none !important; }
  .uc-mob { display: block; }
  .uc-lang { display: none !important; }
}
@media (max-width: 1024px) {
  .uc-footer-grid { grid-template-columns: repeat(4, 1fr); gap: 32px 24px; }
  .uc-footer-brand { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; }
}
@media (max-width: 760px) {
  .uc-footer { padding: 32px 20px 20px; }
  .uc-footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* Wide screens: keep the pill bar and the footer in step with the wider
   page container that page-sections.css switches to at the same width. */
@media (min-width: 1600px) {
  .uc-header-inner { max-width: 1320px; }
  .uc-footer-grid,
  .uc-footer-bottom { max-width: 1360px; }
}

/* The drawer carries its own Request Demo button, so on the narrowest phones
   the one in the bar can step aside and leave the logo room to breathe. */
.uc-drawer-cta { margin-top: 10px; }
.uc-drawer .uc-drawer-cta { padding: 13px; font-size: 15px; color: #fff; }
@media (max-width: 430px) {
  .uc-bar-cta { display: none; }
}

/* ---------------------------------------------------------- cookie consent
   A floating card, bottom left. It never blocks the page (no cookie wall),
   and Reject and Accept share one style and size so neither is nudged. */
.uc-cc {
  position: fixed; left: 20px; bottom: 20px; z-index: 80;
  width: 400px; max-width: calc(100vw - 24px);
  opacity: 0; transform: translateY(16px);
  transition: opacity .22s ease, transform .22s cubic-bezier(.16, 1, .3, 1);
}
.uc-cc.is-open { opacity: 1; transform: none; }
.uc-cc-card {
  background: #fff; border: 1px solid var(--uc-line); border-radius: 20px;
  box-shadow: 0 18px 50px rgba(17, 24, 39, .16), 0 2px 6px rgba(17, 24, 39, .05);
  padding: 22px;
}
.uc-cc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.uc-cc-icon {
  width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0;
  background: #FCE0EF; color: var(--uc-pink);
  display: flex; align-items: center; justify-content: center;
}
.uc-cc-title { font-size: 15.5px; font-weight: 700; color: var(--uc-ink); margin: 0; line-height: 1.3; }
.uc-cc-text { font-size: 13.5px; line-height: 1.6; color: var(--uc-muted); margin: 0; }
.uc-cc-text a { color: var(--uc-pink); font-weight: 600; white-space: nowrap; }
.uc-cc-text a:hover { color: var(--uc-pink-dark); }

/* Second layer */
.uc-cc-prefs { margin-top: 16px; border-top: 1px solid var(--uc-hairline); }
.uc-cc-cat { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--uc-hairline); }
.uc-cc-cat-name { font-size: 14px; font-weight: 700; color: var(--uc-ink); margin-bottom: 3px; }
.uc-cc-cat-desc { font-size: 12.5px; line-height: 1.55; color: var(--uc-muted); }
.uc-cc-always {
  flex-shrink: 0; font-size: 11.5px; font-weight: 700; letter-spacing: .02em;
  color: var(--uc-muted); background: var(--uc-wash); border: 1px solid var(--uc-line);
  padding: 4px 10px; border-radius: 99px; white-space: nowrap;
}

/* On/off switch */
.uc-cc-switch {
  flex-shrink: 0; position: relative; width: 42px; height: 24px; margin-top: 2px;
  border-radius: 99px; border: 0; padding: 0; cursor: pointer;
  background: #D1D5DB; transition: background .18s;
}
.uc-cc-switch[aria-checked="true"] { background: var(--uc-pink); }
.uc-cc-knob {
  position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(17, 24, 39, .25);
  transition: transform .18s ease;
}
.uc-cc-switch[aria-checked="true"] .uc-cc-knob { transform: translateX(18px); }
.uc-cc-switch:focus-visible { outline: 2px solid var(--uc-pink); outline-offset: 2px; }

/* Buttons */
.uc-cc-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.uc-cc-btn {
  flex: 1 1 0; min-width: 0; padding: 11px 16px; border-radius: 99px;
  border: 1px solid var(--uc-ink); background: var(--uc-ink); color: #fff;
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background .15s, border-color .15s;
}
.uc-cc-btn:hover { background: #374151; border-color: #374151; }
.uc-cc-btn:focus-visible { outline: 2px solid var(--uc-pink); outline-offset: 2px; }
.uc-cc-link {
  flex-basis: 100%; margin-top: 2px; padding: 6px 0 0; border: 0; background: none;
  font: inherit; font-size: 13px; font-weight: 600; color: var(--uc-muted);
  cursor: pointer; text-align: center; text-decoration: underline;
  text-decoration-color: var(--uc-line); text-underline-offset: 3px;
}
.uc-cc-link:hover { color: var(--uc-pink); text-decoration-color: currentColor; }

/* "Cookie settings" in the footer looks like the links next to it. */
.uc-footer-linkbtn {
  display: block; padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; color: var(--uc-body); text-align: left;
}
.uc-footer-linkbtn:hover { color: var(--uc-pink); }

@media (max-width: 520px) {
  .uc-cc { left: 12px; right: 12px; bottom: 12px; width: auto; max-width: none; }
  .uc-cc-card { padding: 18px; border-radius: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .uc-cc { transition: none; }
}
