/*
  The site header, shared by every page (home, product pages, blog): the navy
  band with the wave from the landing page, the logo, links, language switch,
  log in and "Try it free". Below 1120px the links move into a drawer
  (assets/header.js opens and closes it).
*/
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("PlusJakartaSans-latin.woff2") format("woff2"); }
@font-face { font-family: "Sora"; font-style: normal; font-weight: 600 800; font-display: swap; src: url("Sora-latin.woff2") format("woff2"); }
.header, .drawer, .scrim {
  --ink-900: #050c22; --blue: #0886d4; --blue-2: #2aa8ef; --on-dark: #c3d1ea;
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif; box-sizing: border-box;
}
.header *, .drawer *, .header *::before, .header *::after { box-sizing: border-box; }
.navLinks a[aria-current="page"] { background: rgba(95, 198, 245, 0.16); color: #fff; }
@keyframes drawerIn { from { transform: translateX(-24px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---- header: navy band with the wave, as on the landing page ---- */
/*
  The wave hangs below the band, over the top of whatever section comes next:
  no space is reserved for it, so around the wave you see the page itself
  (light on the home page, navy on the product pages), never a strip of the
  wrapper's background.
*/
.header {
  --ink: #050c22; --wave-h: 44px;
  position: relative; z-index: 20; width: 100%; color: #fff; margin-bottom: 0;
}
.surface { position: absolute; inset: 0; overflow: hidden; pointer-events: none; background: linear-gradient(180deg, #13285c 0%, var(--ink) 78%); }
.surface::before, .surface::after { content: ""; position: absolute; inset: 0; }
.surface::before { background: radial-gradient(760px 320px at 86% -25%, rgba(57, 194, 242, 0.5), transparent 70%), radial-gradient(760px 200px at 10% 34%, rgba(123, 97, 255, 0.42), transparent 70%); }
.surface::after { top: auto; height: 18px; background: linear-gradient(180deg, transparent, var(--ink)); }
.wave { position: absolute; left: 0; right: 0; top: 100%; display: block; width: 100%; height: var(--wave-h); pointer-events: none; }
.waveBand { filter: drop-shadow(0 6px 10px rgba(8, 134, 212, 0.3)); }
/*
  The band's shading (the #hwd gradient in each page's SVG), tuned here: a soft
  sheen just under the crest instead of the milky white that washed the band
  out where it is thin, and a little depth toward its lower edge.
*/
#hwd stop:nth-child(1) { stop-color: #ffffff; stop-opacity: 0.22; }
#hwd stop:nth-child(2) { stop-color: #ffffff; stop-opacity: 0; }
#hwd stop:nth-child(3) { stop-color: #001a3a; stop-opacity: 0.28; }
.waveLip { top: calc(100% - 1px); height: calc(var(--wave-h) + 1px); }
.waveLip path { fill: var(--ink); }
.waveCrest { filter: drop-shadow(0 0 3px rgba(95, 198, 245, 0.7)); }
/* side gutters: content stays within 1280px, centred (percentages, so the site-wide scale below keeps it centred) */
.bar { position: relative; z-index: 2; display: flex; align-items: center; gap: 14px; min-height: 80px; padding: 10px max(16px, calc(50% - 640px)); }
.brand { flex: none; display: inline-flex; position: relative; top: 7px; border-radius: 10px; }
.brand img { display: block; height: 56px; width: auto; }
.brand:focus-visible { outline: 3px solid #9fdcf9; outline-offset: 4px; }
.navLinks { display: flex; align-items: center; gap: 2px; margin: 0 auto; }
.navLinks a { padding: 10px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 600; color: var(--on-dark); text-decoration: none; white-space: nowrap; transition: background 0.2s, color 0.2s; }
.navLinks a:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
.actions { display: flex; align-items: center; gap: 10px; flex: none; margin-left: auto; }
.navLinks + .actions { margin-left: 0; }
.pillSwitch { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); }
.pillSwitch a { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 30px; padding: 0 10px; border-radius: 999px; color: #d7ecfb; font-size: 13px; font-weight: 700; text-decoration: none; }
.pillSwitch .pillOn { background: #fff; color: var(--ink-900); }
.loginPill { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.07); color: #fff; font-size: 13.5px; font-weight: 700; text-decoration: none; transition: background 0.2s; }
.loginPill:hover { background: rgba(255, 255, 255, 0.14); }
.ctaPill { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: 999px; color: #fff; font-size: 14px; font-weight: 800; text-decoration: none; white-space: nowrap; background: linear-gradient(135deg, var(--blue), var(--blue-2)); box-shadow: 0 10px 24px rgba(8, 134, 212, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.22); }
.burger { display: none; flex: none; width: 40px; height: 40px; padding: 0 11px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.06); cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; }
.burger span { display: block; height: 2px; border-radius: 2px; background: #fff; }
.drawer { position: fixed; z-index: 1000; top: 0; left: 0; bottom: 0; width: min(320px, 86vw); padding: 16px 14px 20px; display: none; flex-direction: column; gap: 4px; overflow-y: auto; background: radial-gradient(400px 260px at 100% 0%, rgba(57, 194, 242, 0.25), transparent 70%), #050c22; box-shadow: 30px 0 80px rgba(0, 0, 0, 0.45); animation: drawerIn 0.22s ease-out; }
.navOpen .drawer { display: flex; }
.drawerHead { display: flex; align-items: center; justify-content: space-between; padding: 6px 4px 18px; margin-bottom: 8px; border-bottom: 1px solid rgba(255, 255, 255, 0.09); }
.drawerHead img { height: 36px; width: auto; }
.drawerClose { width: 42px; height: 42px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.05); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.drawer > a { display: flex; align-items: center; height: 48px; padding: 0 16px; border-radius: 14px; color: var(--on-dark); font-size: 16px; font-weight: 600; text-decoration: none; }
.drawer > a:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
.drawerFoot { margin-top: auto; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.09); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.scrim { position: fixed; inset: 0; z-index: 999; background: rgba(5, 12, 34, 0.45); display: none; }
.navOpen .scrim { display: block; }

/* ---- header below 1280px: one row, links in the drawer (7 menu links) ---- */
@media (max-width: 1279px) {
  .navLinks, .hideTablet { display: none; }
  .burger { display: inline-flex; }
}
@media (max-width: 1024px) {
  .header { --wave-h: 0px; }
  .wave, .surface::after { display: none; }
  .header::after { content: ""; position: absolute; z-index: 3; left: 0; right: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, #2aa8ef 0%, #a6ecff 50%, #2aa8ef 100%); box-shadow: 0 0 10px rgba(95, 198, 245, 0.75); }
  .bar { min-height: 64px; gap: 12px; }
  .brand { top: 0; }
  .brand img { height: 40px; }
}
@media (max-width: 560px) {
  .bar { padding-inline: 14px; gap: 10px; }
  .brand img { height: 34px; }
  .actions { gap: 8px; }
  .hidePhone { display: none; }
  .ctaPill { height: 36px; padding: 0 14px; font-size: 13px; }
}


/* ---- language switch: a flag before each language (EN first, FR second) ---- */
.pillSwitch a { gap: 7px; padding: 0 12px 0 10px; }
.pillSwitch a::before {
  content: ""; flex: none; width: 19px; height: 13px; border-radius: 2.5px;
  background: center / cover no-repeat; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35), 0 1px 3px rgba(0, 0, 0, 0.3);
}
.pillSwitch .pillOn::before { box-shadow: 0 0 0 1px rgba(5, 12, 34, 0.15); }
.pillSwitch a:nth-child(1)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 190 130'%3E%3Crect width='190' height='130' fill='%23fff'/%3E%3Crect y='0' width='190' height='10' fill='%23B22234'/%3E%3Crect y='20' width='190' height='10' fill='%23B22234'/%3E%3Crect y='40' width='190' height='10' fill='%23B22234'/%3E%3Crect y='60' width='190' height='10' fill='%23B22234'/%3E%3Crect y='80' width='190' height='10' fill='%23B22234'/%3E%3Crect y='100' width='190' height='10' fill='%23B22234'/%3E%3Crect y='120' width='190' height='10' fill='%23B22234'/%3E%3Crect width='76' height='70' fill='%233C3B6E'/%3E%3Cg fill='%23fff'%3E%3Ccircle cx='6.3' cy='7' r='2.2'/%3E%3Ccircle cx='19.0' cy='7' r='2.2'/%3E%3Ccircle cx='31.7' cy='7' r='2.2'/%3E%3Ccircle cx='44.3' cy='7' r='2.2'/%3E%3Ccircle cx='57.0' cy='7' r='2.2'/%3E%3Ccircle cx='69.7' cy='7' r='2.2'/%3E%3Ccircle cx='12.7' cy='14' r='2.2'/%3E%3Ccircle cx='25.3' cy='14' r='2.2'/%3E%3Ccircle cx='38.0' cy='14' r='2.2'/%3E%3Ccircle cx='50.7' cy='14' r='2.2'/%3E%3Ccircle cx='63.3' cy='14' r='2.2'/%3E%3Ccircle cx='6.3' cy='21' r='2.2'/%3E%3Ccircle cx='19.0' cy='21' r='2.2'/%3E%3Ccircle cx='31.7' cy='21' r='2.2'/%3E%3Ccircle cx='44.3' cy='21' r='2.2'/%3E%3Ccircle cx='57.0' cy='21' r='2.2'/%3E%3Ccircle cx='69.7' cy='21' r='2.2'/%3E%3Ccircle cx='12.7' cy='28' r='2.2'/%3E%3Ccircle cx='25.3' cy='28' r='2.2'/%3E%3Ccircle cx='38.0' cy='28' r='2.2'/%3E%3Ccircle cx='50.7' cy='28' r='2.2'/%3E%3Ccircle cx='63.3' cy='28' r='2.2'/%3E%3Ccircle cx='6.3' cy='35' r='2.2'/%3E%3Ccircle cx='19.0' cy='35' r='2.2'/%3E%3Ccircle cx='31.7' cy='35' r='2.2'/%3E%3Ccircle cx='44.3' cy='35' r='2.2'/%3E%3Ccircle cx='57.0' cy='35' r='2.2'/%3E%3Ccircle cx='69.7' cy='35' r='2.2'/%3E%3Ccircle cx='12.7' cy='42' r='2.2'/%3E%3Ccircle cx='25.3' cy='42' r='2.2'/%3E%3Ccircle cx='38.0' cy='42' r='2.2'/%3E%3Ccircle cx='50.7' cy='42' r='2.2'/%3E%3Ccircle cx='63.3' cy='42' r='2.2'/%3E%3Ccircle cx='6.3' cy='49' r='2.2'/%3E%3Ccircle cx='19.0' cy='49' r='2.2'/%3E%3Ccircle cx='31.7' cy='49' r='2.2'/%3E%3Ccircle cx='44.3' cy='49' r='2.2'/%3E%3Ccircle cx='57.0' cy='49' r='2.2'/%3E%3Ccircle cx='69.7' cy='49' r='2.2'/%3E%3Ccircle cx='12.7' cy='56' r='2.2'/%3E%3Ccircle cx='25.3' cy='56' r='2.2'/%3E%3Ccircle cx='38.0' cy='56' r='2.2'/%3E%3Ccircle cx='50.7' cy='56' r='2.2'/%3E%3Ccircle cx='63.3' cy='56' r='2.2'/%3E%3Ccircle cx='6.3' cy='63' r='2.2'/%3E%3Ccircle cx='19.0' cy='63' r='2.2'/%3E%3Ccircle cx='31.7' cy='63' r='2.2'/%3E%3Ccircle cx='44.3' cy='63' r='2.2'/%3E%3Ccircle cx='57.0' cy='63' r='2.2'/%3E%3Ccircle cx='69.7' cy='63' r='2.2'/%3E%3C/g%3E%3C/svg%3E"); }
.pillSwitch a:nth-child(2)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 3 2'%3E%3Crect width='1' height='2' fill='%230055A4'/%3E%3Crect x='1' width='1' height='2' fill='%23fff'/%3E%3Crect x='2' width='1' height='2' fill='%23EF4135'/%3E%3C/svg%3E"); }

/*
  Site-wide scale on large screens (1280px and wider): at 100% browser zoom the
  pages render the way they used to at 90%, leaving more room on the sides.
  The header renders at 95% (0.95 / 0.9 on top of the page's scale).
  Media queries still see the real window width.
*/
@media (min-width: 1280px) {
  html { zoom: 0.9; }
  .header { zoom: 1.0556; }
}

/* 7 menu links: slightly tighter pills on mid-size desktops */
@media (min-width: 1280px) and (max-width: 1500px) { .navLinks a { padding: 10px 11px; } }
