/* Veltrex — the language dialog and the EN / FR switcher (assets/js/i18n.js). Same ground, type and edges as
   the rest of the site: near-black, Archivo for names, Inter for text, white at fixed alphas, hairline borders. */

/* A French page stays hidden only while the parser finishes and i18n.js swaps its text, so the English never
   flashes. The home page's board is not shown before then anyway. */
html.vx-i18n-wait body > :not(dialog){visibility:hidden}

/* ---------- Switcher ---------- */
.vxlang{display:inline-flex;align-items:center;flex:none}
.vxlang__opt{position:relative;display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;margin:0;padding:0 9px;border:0;border-radius:6px;background:none;color:rgba(255,255,255,.55);font-family:Archivo,Inter,system-ui,sans-serif;font-size:13px;font-weight:500;letter-spacing:.08em;line-height:1;text-shadow:0 1px 8px rgba(0,0,0,.9);cursor:pointer;-webkit-tap-highlight-color:transparent;transition:color .15s ease-out}
.vxlang__opt + .vxlang__opt::before{content:"";position:absolute;left:0;top:50%;width:1px;height:12px;margin-top:-6px;background:rgba(255,255,255,.22)}
.vxlang__opt:hover{color:#FFFFFF}
/* the current language: white and underlined, so the state never rests on colour alone */
.vxlang__opt[aria-pressed="true"]{color:#FFFFFF;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:6px;cursor:default}
.vxlang__opt:focus-visible{outline:2px solid #FFFFFF;outline-offset:-2px}

/* Home: beside the company links on wide screens; at the foot of the hero, with them, on narrow ones */
.vxlang--mini{display:none}
@media (max-width:599px){
  .vxlang--bar{display:none}
  .vxlang--mini{display:inline-flex}
}
/* French runs longer than English. On phones the bar's two pills ("Connexion", "Liste d’attente") would push past
   the right inset, and the hero's first word (RÉVOLUTIONNEZ, wider than REVOLUTIONIZE) would be clipped on a
   360px screen at the headline's 46px floor; these are the only size changes, and only in French. */
@media (max-width:599px){
  html[lang="fr"] .vxpill{padding-left:24px;padding-right:24px}
}
/* (English has the same problem: REVOLUTIONIZE is as wide, and was clipped at both edges on a 320px screen, so the
   headline's size cap applies in both languages; it only bites below 400px) */
@media (max-width:480px){
  html[lang] [data-screen-label="Hero"] h1{font-size:min(46px,11.5vw)!important}
}

/* Waitlist header on phones: beside the mark and the two pills there is room for one button, so only the other
   language shows (the group keeps its label, and the button names its language) */
@media (max-width:560px){
  .vx-nav .vxlang__opt{min-width:34px;padding:0 6px}
  .vx-nav .vxlang__opt[aria-pressed="true"]{display:none}
  .vx-nav .vxlang__opt + .vxlang__opt::before{display:none}
  html[lang="fr"] .vx-pill{padding-left:14px;padding-right:14px}
}

/* Narrowest phones, both languages: the second pill ("Sign up", "Liste d’attente") ran off the right edge of the home
   bar, and the waitlist bar broke onto a second row in French. The marks shrink a little and the pills tighten, so every
   link stays on screen, on one row, down to 320px. (Same specificity as the rules above, so these come last.) */
@media (max-width:420px){
  [data-vxmark]{width:56px!important;height:56px!important}
  html[lang] .vxpill{padding:10px 12px;font-size:13px}
}
@media (max-width:380px){
  .vx-header{gap:10px}
  .vx-logo{width:44px;height:44px}
  .vx-nav{gap:6px}
  html[lang] .vx-pill{padding:7px 10px;font-size:12.5px}
}

/* Waitlist billing toggle: "Annuelle · Économisez 17 %" needs more than half the control, so in French the two
   options share it by their length instead of equally (the sliding thumb measures each label, so it follows) */
html[lang="fr"] .vx-seg--period label{flex:1 1 auto}

/* Home footer: on the bottom rule, after the legal links */
.vxf__end{display:flex;flex-wrap:wrap;align-items:center;gap:0 28px}
.vxlang--foot .vxlang__opt{min-height:44px;text-shadow:none}
.vxlang--foot .vxlang__opt:first-child{padding-left:0;min-width:0;justify-content:flex-start}

/* ---------- First-visit dialog ---------- */
.vxl{box-sizing:border-box;width:min(560px,calc(100% - 32px));max-width:none;max-height:calc(100% - 32px);margin:auto;padding:0;border:0;background:transparent;color:#FFFFFF;overflow:visible}
.vxl *,.vxl *::before,.vxl *::after{box-sizing:border-box}
.vxl:focus{outline:none}
.vxl::backdrop{background:rgba(0,0,0,.72);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.vxl[open]{animation:vxl-in .4s cubic-bezier(.16,.84,.24,1) both}
.vxl[open]::backdrop{animation:vxl-fade .3s ease-out both}
@keyframes vxl-in{from{opacity:0;transform:translateY(12px) scale(.98)}to{opacity:1;transform:none}}
@keyframes vxl-fade{from{opacity:0}to{opacity:1}}
/* no <dialog> support: the same panel over a fixed veil */
.vxl--static{position:fixed;inset:0;z-index:2147483000;display:grid;place-items:center;width:auto;max-height:none;margin:0;padding:16px;background:rgba(0,0,0,.72)}
.vxl--static .vxl__panel{width:min(560px,100%)}

.vxl__panel{max-height:calc(100svh - 32px);overflow:auto;padding:clamp(28px,5vw,40px);border-radius:18px;background:#0D0D0D;box-shadow:inset 0 0 0 1px rgba(255,255,255,.1),0 40px 90px -30px rgba(0,0,0,.95);font-family:Inter,system-ui,-apple-system,sans-serif;text-align:center}
.vxl__mark{display:block;width:44px;height:44px;margin:0 auto 20px;object-fit:contain;mix-blend-mode:lighten}
.vxl__title{margin:0 0 clamp(24px,4vw,32px);font-family:Archivo,Inter,system-ui,sans-serif;font-weight:500;font-size:clamp(24px,4.4vw,30px);line-height:1.15;letter-spacing:-.025em;color:#FFFFFF;text-wrap:balance}
.vxl__title > span{display:block}
/* the two languages ask the same question with equal weight: neither reads as the other's caption */
.vxl__alt{margin-top:2px}

.vxl__choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.vxl__choice{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-height:96px;margin:0;padding:20px 44px 20px 20px;border:0;border-radius:14px;background:rgba(255,255,255,.03);box-shadow:inset 0 0 0 1px rgba(255,255,255,.14);color:#FFFFFF;font:inherit;text-align:left;cursor:pointer;-webkit-tap-highlight-color:transparent;transition-property:background-color,box-shadow,transform;transition-duration:.18s;transition-timing-function:ease-out}
.vxl__choice:hover{background:rgba(255,255,255,.06);box-shadow:inset 0 0 0 1px rgba(255,255,255,.42)}
.vxl__choice:active{transform:scale(.98)}
.vxl__choice:focus-visible{outline:2px solid #FFFFFF;outline-offset:3px}
.vxl__name{font-family:Archivo,Inter,system-ui,sans-serif;font-size:20px;font-weight:500;letter-spacing:-.015em;line-height:1.2}
.vxl__hint{font-size:13.5px;line-height:1.4;color:rgba(255,255,255,.62)}
.vxl__arrow{position:absolute;right:18px;top:50%;margin-top:-.6em;font-size:16px;line-height:1.2;color:rgba(255,255,255,.5);transition:transform .18s ease-out,color .18s ease-out}
.vxl__choice:hover .vxl__arrow{color:#FFFFFF;transform:translateX(3px)}

@media (max-width:479px){
  .vxl__choices{grid-template-columns:1fr}
  .vxl__choice{min-height:0}
}
@media (prefers-reduced-motion:reduce){
  .vxl[open],.vxl[open]::backdrop{animation:none}
  .vxl__choice,.vxl__arrow,.vxlang__opt{transition:none}
  .vxl__choice:active{transform:none}
  .vxl__choice:hover .vxl__arrow{transform:none}
}
@media (forced-colors:active){
  .vxl__panel,.vxl__choice{border:1px solid CanvasText}
  .vxlang__opt[aria-pressed="true"]{text-decoration-thickness:2px}
}
