/* ============================================================================
   ViTViT — sign-up / sign-in surface
   ----------------------------------------------------------------------------
   Shared by /enskri/*, /konekte/* and /kont. Loaded as an external stylesheet
   rather than inlined per page: the wizard shell is identical across ~30 step
   URLs, so one cached download beats inlining the same 20 KB thirty times.
   The homepage's single-file rule exists to protect first paint on 3G; here
   the same goal is served by caching, and by keeping this file small.

   Redesign «1 · Ekran» (Junior, 25 Nov 2026, D136): the apps' v5 look. Every
   value is a v5 role from /assets/vv-tokens.css, which each page links just
   before this file (generated from tools/website/design/tokens.css and checked
   by design_tokens.py; these pages' CSP is style-src 'self', so it cannot be
   inline). White cards with the apps' e1 depth, the system font, no blur, the
   primary action in the apps' accent fill. Success is navy, never green.
   ========================================================================== */

:root{
  /* The page's own property names, each pointing at a v5 role (vv-tokens.css).
     Change a value in tools/website/design/tokens.css, never here. */
  --brand-navy:var(--vv-ink); --brand-navy-soft:var(--vv-navy);
  --sig:var(--vv-link); --sig-deep:var(--vv-navy);
  --surface:var(--vv-page);
  --ink:var(--vv-ink); --ink-soft:var(--vv-ink); --ink-dim:var(--vv-ink2); --ink-faint:var(--vv-ink2);
  --success:var(--vv-ok); --danger:var(--vv-red);
  /* The apps' system font; nothing to download. */
  --font-display:var(--vv-font); --font-body:var(--vv-font); --font-mono:var(--vv-font);
  --r-sm:var(--vv-r-icon); --r-md:var(--vv-r-field); --r-lg:var(--vv-r-group); --r-xl:var(--vv-r-card); --r-full:var(--vv-r-pill);
  --ease:var(--vv-ease); --ease-spring:var(--vv-ease);
}

*{margin:0;padding:0;box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body.ens{
  min-height:100dvh; background:var(--surface); color:var(--ink);
  font-family:var(--font-body); font-size:16px; line-height:1.55; letter-spacing:-.01em;
  -webkit-font-smoothing:antialiased; overflow-x:hidden;
  display:flex; flex-direction:column;
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
:focus-visible{outline:none;box-shadow:var(--vv-focus)!important}
::selection{background:var(--vv-tint);color:var(--vv-ink)}
.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}
.sr-only:focus{position:fixed;top:12px;left:12px;width:auto;height:auto;clip:auto;padding:10px 16px;background:var(--brand-navy);color:#fff;border-radius:var(--r-full);z-index:100;font-weight:700}

/* ── Top bar — solid, a hairline under it (the apps draw no blur) ─────────── */
.ens-top{
  position:sticky; top:0; z-index:20;
  background:var(--vv-page); box-shadow:0 1px 0 var(--vv-line);
}
.ens-top__row{
  max-width:560px; margin:0 auto; padding:10px 16px;
  display:flex; align-items:center; gap:12px;
}
.ens-brand{display:flex;align-items:center;gap:9px;margin-right:auto;min-width:44px;min-height:44px}
.ens-brand img{width:30px;height:30px;border-radius:9px}
/* text-transform:none — the wordmark is ViTViT exactly; only the "Ayiti" kicker is set in capitals. */
.ens-brand b{font-family:var(--font-display);font-size:16px;letter-spacing:-.2px;color:var(--brand-navy);text-transform:none}
.ens-brand span{display:block;font-size:11px;letter-spacing:.7px;text-transform:uppercase;color:var(--ink-faint);font-weight:600;line-height:1}

/* "← govitvit.com": the one way back to the site from a form step. */
.ens-home{display:inline-flex;align-items:center;gap:5px;min-height:44px;padding:0 6px;border-radius:var(--r-sm);
  font-size:12px;font-weight:600;color:var(--sig-deep);white-space:nowrap}
.ens-home:hover{color:var(--brand-navy)}
/* 320–359px: logo, "← govitvit.com" and the three languages do not fit beside
   the wordmark. The wordmark leaves the screen but not the link's name. */
@media (max-width:359px){
  .ens-top__row{gap:8px}
  .ens-brand>span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
}

/* The language switch = the apps' segmented control: a grey track, the chosen one lifted (as the site menu's). */
.ens-lang{display:flex;gap:2px;padding:2px;border-radius:var(--vv-r-small);background:var(--vv-fill)}
.ens-lang a,.ens-lang button{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;
  padding:4px 8px;border-radius:11px;font-size:11px;font-weight:700;color:var(--vv-ink2);line-height:1.3;
  border:0;background:transparent;font-family:inherit;cursor:pointer}
.ens-lang a[aria-current],.ens-lang button[aria-current]{background:var(--vv-card);color:var(--vv-ink);box-shadow:0 1px 3px rgba(4,44,83,.14)}

/* Progress — a hairline, not a dashboard. */
.ens-prog{max-width:560px;margin:0 auto;padding:0 16px 10px}
.ens-prog__meta{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:6px}
.ens-prog__step{font-size:11px;letter-spacing:.6px;text-transform:uppercase;font-weight:700;color:var(--ink-faint)}
.ens-prog__saved{font-size:11px;font-weight:600;color:var(--success);display:none;align-items:center;gap:5px}
.ens-prog__saved.on{display:flex}
.ens-prog__saved::before{content:'';width:6px;height:6px;border-radius:50%;background:var(--success)}
.ens-prog__track{height:5px;border-radius:var(--r-full);background:var(--vv-fill);overflow:hidden}
.ens-prog__fill{height:100%;border-radius:var(--r-full);background:var(--vv-acc-a);transition:width .45s var(--ease)}

/* ── Layout ───────────────────────────────────────────────────────────────── */
.ens-main{position:relative;z-index:1;flex:1;width:100%;max-width:560px;margin:0 auto;padding:22px 16px 132px}
.ens-head{margin-bottom:20px}
.ens-eyebrow{font-size:11px;letter-spacing:1.1px;text-transform:uppercase;font-weight:700;color:var(--sig-deep);margin-bottom:7px}
.ens-h1{font-family:var(--font-display);font-size:clamp(25px,7vw,33px);line-height:1.12;letter-spacing:-.03em;color:var(--vv-ink);font-weight:var(--vv-weight-display)}
/* text-wrap:balance stops a lede ending with a one-word orphan on its own
   line — the download pages were rendering "…pou ou / a." with the last two
   characters stranded. Balance evens the lines instead of filling greedily.
   Unsupported browsers ignore it and fall back to normal wrapping, so this
   costs nothing on an older Android. */
.ens-lede{margin-top:9px;color:var(--ink-dim);font-size:15px;max-width:44ch;text-wrap:balance}

.ens-card{background:var(--vv-card);border-radius:var(--vv-r-card);padding:20px 18px;box-shadow:var(--vv-e1);margin-bottom:8px}
.ens-card--flat{background:transparent;box-shadow:none;padding:0;margin-bottom:14px}

/* ── Fields — the apps' field: white, a 1.5 px edge, 54 px ────────────────────
   Focus is the field's own 2 px accent edge, as the apps draw it. Those rules
   carry !important because the page-wide :focus-visible ring above does: without
   it the ring would replace the edge (and, on the phone field, draw clipped
   around the inner input). ─────────────────────────────────────────────────── */
.f{margin-bottom:16px}
.f__label{display:block;font-size:11px;letter-spacing:.6px;text-transform:uppercase;font-weight:700;color:var(--ink-faint);margin-bottom:7px}
.f__req{color:var(--danger);margin-left:3px}
.f__hint{margin-top:7px;font-size:12.5px;color:var(--ink-faint);line-height:1.45}
.f__err{margin-top:7px;font-size:13px;color:var(--danger);font-weight:600;display:none}
.f.is-bad .f__err{display:block}
.f.is-bad .inp,.f.is-bad .phone{box-shadow:inset 0 0 0 2px var(--vv-red)}

/* 16px keeps iOS from zooming the viewport on focus. */
.inp{
  width:100%; min-height:54px; font:500 16px/1.4 var(--font-body); color:var(--vv-ink);
  background:var(--vv-card); border:0; border-radius:var(--vv-r-field); padding:14px 15px;
  box-shadow:inset 0 0 0 1.5px var(--vv-edge); outline:none;
  transition:box-shadow .2s var(--ease);
}
.inp::placeholder{color:#9BA7B8;font-weight:400}
.inp:focus{box-shadow:inset 0 0 0 2px var(--vv-acc-a)!important}
textarea.inp{min-height:88px;resize:vertical}
select.inp{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%233A5A7C' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 15px center;padding-right:42px}
.f__row{display:flex;gap:10px}
.f__row>*{flex:1;min-width:0}

/* Phone — the country code is fixed; Haiti is the only market. */
.phone{display:flex;align-items:stretch;min-height:54px;background:var(--vv-card);border-radius:var(--vv-r-field);box-shadow:inset 0 0 0 1.5px var(--vv-edge);overflow:hidden}
.phone__cc{display:flex;align-items:center;gap:7px;padding:0 12px 0 15px;font-weight:700;font-size:15px;color:var(--ink-soft);border-right:1px solid rgba(160,180,207,.35);white-space:nowrap}
.phone__cc svg{width:20px;height:14px;border-radius:2px;flex:none}
.phone input{flex:1;min-width:0;border:0;outline:none;background:transparent;padding:14px 15px;font:600 17px/1.4 var(--font-mono);letter-spacing:.5px;color:var(--ink)}
.phone:focus-within{box-shadow:inset 0 0 0 2px var(--vv-acc-a)!important}
.phone input:focus{box-shadow:none!important}

/* ── OTP boxes ────────────────────────────────────────────────────────────── */
.otp{display:flex;gap:8px;justify-content:space-between;direction:ltr}
.otp input{
  flex:1; min-width:0; aspect-ratio:3/4; max-width:56px;
  text-align:center; font:700 24px/1 var(--font-mono); color:var(--vv-ink);
  min-height:54px; background:var(--vv-card); border:0; border-radius:var(--vv-r-field);
  box-shadow:inset 0 0 0 1.5px var(--vv-edge); outline:none; padding:0;
}
.otp input:focus{box-shadow:inset 0 0 0 2px var(--vv-acc-a)!important}
.otp input.filled{background:var(--vv-tint)}

/* ── PIN — dots + a real keypad, same as the app: white keys, e1 ────────── */
.pin-dots{display:flex;gap:13px;justify-content:center;margin:6px 0 26px}
.pin-dots i{width:15px;height:15px;border-radius:50%;background:var(--vv-fill);transition:transform .2s var(--ease-spring),background .2s}
.pin-dots i.on{background:var(--vv-acc-a);transform:scale(1.16)}
.pin-dots.bad i{background:var(--danger);box-shadow:none;animation:shake .4s}
@keyframes shake{10%,90%{transform:translateX(-2px)}30%,70%{transform:translateX(4px)}50%{transform:translateX(-4px)}}
.pad{display:grid;grid-template-columns:repeat(3,1fr);gap:11px;max-width:310px;margin:0 auto}
.pad button{
  aspect-ratio:1.45/1; border:0; cursor:pointer; font:600 25px/1 var(--font-body); color:var(--vv-ink);
  background:var(--vv-card); border-radius:var(--vv-r-group); box-shadow:var(--vv-e1);
  transition:background .12s var(--ease),transform .12s var(--ease);
}
.pad button.ghost{background:transparent;box-shadow:none}
.pad button:active{transform:scale(.96);background:var(--vv-fill)}
.pad button svg{margin:0 auto;stroke:var(--vv-ink)}

/* ── Choice tiles — roles, vehicles, sectors, services: the white v5 card;
   the chosen one in the tint with a 2 px accent edge ─────────────────────── */
.tiles{display:grid;gap:12px}
.tiles--3{grid-template-columns:repeat(3,1fr)}
.tile{
  position:relative; width:100%; text-align:left; cursor:pointer; border:0;
  font-family:inherit; color:var(--ink);
  background:var(--vv-card); border-radius:var(--vv-r-card); padding:16px;
  box-shadow:var(--vv-e1);
  transition:transform .3s var(--ease),box-shadow .3s var(--ease);
}
.tile:hover{transform:translateY(-3px)}
.tile:active{transform:translateY(1px)}
.tile[aria-pressed="true"],.tile.sel{
  background:var(--vv-tint); color:var(--vv-ink); box-shadow:inset 0 0 0 2px var(--vv-acc-a);
}
.tile[aria-pressed="true"] .tile__ico,.tile.sel .tile__ico{background:var(--vv-acc-a);color:var(--vv-on-acc)}
.tile__ico{
  width:46px;height:46px;border-radius:14px;display:flex;align-items:center;justify-content:center;
  background:linear-gradient(145deg,var(--brand-navy-soft),var(--sig));color:#fff;margin-bottom:11px;
  box-shadow:0 7px 14px -5px rgba(31,70,131,.5);
}
.tiles--3 .tile{padding:14px 9px;text-align:center}
.tiles--3 .tile__ico{margin:0 auto 8px;width:40px;height:40px;border-radius:12px}
.tile__name{font-weight:700;font-size:15.5px;letter-spacing:-.2px;display:block}
.tiles--3 .tile__name{font-size:13.5px}
.tile__sub{display:block;font-size:12.5px;color:var(--ink-faint);margin-top:3px;line-height:1.4}
.tiles--3 .tile__sub{font-size:11px}
.tile__check{position:absolute;top:12px;right:12px;opacity:0;transform:scale(.6);transition:.25s var(--ease-spring)}
.tile[aria-pressed="true"] .tile__check,.tile.sel .tile__check{opacity:1;transform:scale(1)}

/* Exploded deck — the three role cards on /enskri, and the vehicle picker.
   Layers separate along Z on entry, then settle. Same idea as /veyikil. */
/* The entry motion animates POSITION ONLY. Opacity is never animated, so the
   tiles are readable no matter what the animation does.

   Two attempts got this wrong. First the reveal was a class added inside
   requestAnimationFrame, which does not run while a document is not being
   rendered — a background tab or a webview that never paints showed an EMPTY
   card where the choices should be. Replacing it with a CSS animation did NOT
   fix it: measured 05/09/2026, a keyframe with `both` fill strands the element
   on its invisible `from` state for exactly the same reason, because the
   animation timeline has not started either.

   So visibility is not something to animate. The worst case here is a tile
   sitting 22px low — legible, tappable, merely un-animated — instead of a
   blank card. Content must never need anything to run in order to be seen. */
.explode>*{animation:explodeIn .5s var(--ease-spring) both}
.explode>*:nth-child(1){animation-delay:.04s}
.explode>*:nth-child(2){animation-delay:.13s}
.explode>*:nth-child(3){animation-delay:.22s}
.explode>*:nth-child(4){animation-delay:.31s}
@keyframes explodeIn{
  from{transform:translateY(22px) scale(.96)}
  to{transform:none}
}

/* ── Document / photo capture tiles ───────────────────────────────────────── */
.docs{display:grid;grid-template-columns:1fr 1fr;gap:11px}
.doc{
  position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;
  min-height:118px;padding:13px 10px;cursor:pointer;border:0;font-family:inherit;text-align:center;
  background:var(--vv-card);border-radius:var(--r-lg);box-shadow:inset 0 0 0 1.5px var(--vv-line);color:var(--vv-ink);
  transition:box-shadow .25s var(--ease)
}
.doc input{position:absolute;inset:0;opacity:0;cursor:pointer}
.doc__name{font-size:12.5px;font-weight:700;line-height:1.3}
.doc__state{font-size:11px;color:var(--ink-faint)}
.doc svg{stroke:var(--sig-deep)}
.doc.has{box-shadow:var(--vv-e1),inset 0 0 0 2px var(--vv-acc-a)}
.doc.has .doc__state{color:var(--success);font-weight:700}
.doc.busy{opacity:.6;pointer-events:none}
.doc__thumb{position:absolute;inset:0;border-radius:var(--r-lg);object-fit:cover;width:100%;height:100%;opacity:.22}

/* ── Avatar picker ────────────────────────────────────────────────────────── */
.avatar{position:relative;width:110px;height:110px;margin:0 auto 8px;border-radius:50%;background:var(--vv-card2);box-shadow:inset 0 0 0 1.5px var(--vv-line);display:flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden}
.avatar input{position:absolute;inset:0;opacity:0;cursor:pointer}
.avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.avatar__badge{position:absolute;right:2px;bottom:6px;width:32px;height:32px;border-radius:50%;background:var(--vv-slab);box-shadow:var(--vv-e3);display:flex;align-items:center;justify-content:center;color:var(--vv-slab-ink)}

/* ── Checkbox rows (terms, services) ──────────────────────────────────────── */
.check{display:flex;gap:11px;align-items:flex-start;cursor:pointer;padding:3px 0;margin-bottom:9px}
.check input{position:absolute;opacity:0;width:0;height:0}
.check__box{flex:none;width:23px;height:23px;border-radius:7px;background:var(--vv-card);box-shadow:inset 0 0 0 1.5px var(--vv-edge);display:flex;align-items:center;justify-content:center;margin-top:1px;transition:.2s var(--ease)}
.check__box svg{opacity:0;transform:scale(.5);transition:.2s var(--ease-spring);stroke:var(--vv-on-acc)}
.check input:checked+.check__box{background:var(--vv-acc-a);box-shadow:none}
.check input:checked+.check__box svg{opacity:1;transform:scale(1)}
.check input:focus-visible+.check__box{box-shadow:var(--vv-focus)}
.check__txt{font-size:13.5px;line-height:1.5;color:var(--ink-soft)}
.check__txt a{color:var(--sig-deep);font-weight:700;text-decoration:underline;text-underline-offset:2px}

/* ── Notes ────────────────────────────────────────────────────────────────── */
.note{display:flex;gap:10px;align-items:flex-start;padding:12px 14px;border-radius:var(--r-md);font-size:13px;line-height:1.5;margin-bottom:14px}
.note svg{flex:none;margin-top:1px}
.note--info{background:var(--vv-tint);color:var(--vv-navy);border:1px solid transparent}
.note--warn{background:var(--vv-wait-tint);color:var(--vv-wait);border:1px solid transparent}
.note--bad{background:var(--vv-red-tint);color:var(--vv-red);border:1px solid transparent}
.note--ok{background:var(--vv-ok-tint);color:var(--vv-ok);border:1px solid transparent}

/* ── Docked actions ───────────────────────────────────────────────────────── */
.ens-dock{
  position:fixed;left:0;right:0;bottom:0;z-index:15;
  padding:12px 16px calc(12px + env(safe-area-inset-bottom));
  background:linear-gradient(to top,var(--vv-page) 70%,transparent);
}
/* The actions line up with the form above them: .ens-main is 560px wide INCLUDING
   its side padding, so the dock's row is its content width — 560px less 2×16px
   here, less 2×24px from 640px. Capped at 560px it ran 16–24px left of the card. */
.ens-dock__in{max-width:calc(560px - 32px);margin:0 auto;display:flex;flex-direction:column;gap:9px}
.btn{
  display:flex;align-items:center;justify-content:center;gap:9px;width:100%;
  min-height:54px;padding:15px 20px;border:0;cursor:pointer;
  font:700 16px/1 var(--font-body);letter-spacing:.005em;
  border-radius:var(--vv-r-button);transition:transform 140ms var(--vv-ease),filter 140ms ease
}
/* The apps' buttons: primary = the accent fill, soft = the tint, ghost = a link; a press scales to --vv-press. */
.btn:active{transform:scale(var(--vv-press))}
@media (hover:hover) and (pointer:fine){.btn:hover{filter:brightness(1.06)}}
.btn--go{background:linear-gradient(160deg,var(--vv-acc-a),var(--vv-acc-b));color:var(--vv-on-acc);box-shadow:var(--vv-btn-shadow)}
.btn--ghost{background:transparent;color:var(--vv-link);box-shadow:none;min-height:44px;font-size:14px}
.btn--soft{background:var(--vv-tint);color:var(--vv-tint-ink);box-shadow:none}
.btn[disabled]{opacity:.45;pointer-events:none}
.btn__spin{width:18px;height:18px;border:2.5px solid rgba(255,255,255,.35);border-top-color:#fff;border-radius:50%;animation:spin .7s linear infinite;display:none}
.btn.busy .btn__spin{display:block}
.btn.busy .btn__txt{opacity:.75}
@keyframes spin{to{transform:rotate(360deg)}}

/* ── Result screens ───────────────────────────────────────────────────────── */
.seal{width:104px;height:104px;margin:4px auto 18px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--vv-slab);box-shadow:var(--vv-e3);color:var(--vv-slab-ink);animation:inflate .6s var(--ease-spring) both}
.seal--ok{background:linear-gradient(160deg,var(--vv-acc-a),var(--vv-acc-b));box-shadow:var(--vv-btn-shadow);color:var(--vv-on-acc)}
.seal--wait{background:var(--vv-wait-tint);color:var(--vv-wait);box-shadow:none}
@keyframes inflate{from{transform:scale(.55);opacity:0}to{transform:scale(1);opacity:1}}
.seal--wait::after{content:'';position:absolute;width:104px;height:104px;border-radius:50%;border:2px solid rgba(217,107,0,.32);animation:ring 2.2s ease-out infinite}
@keyframes ring{from{transform:scale(.92);opacity:.9}to{transform:scale(1.45);opacity:0}}

.idcard{background:var(--vv-slab);box-shadow:var(--vv-e3);border-radius:var(--r-xl);padding:20px;text-align:center;color:var(--vv-slab-ink);margin-bottom:16px}
.idcard__lbl{font-size:11px;letter-spacing:1px;text-transform:uppercase;opacity:.8;font-weight:700}
.idcard__val{font:700 27px/1.2 var(--font-mono);letter-spacing:1.5px;margin:7px 0 5px}
.idcard__foot{font-size:12.5px;opacity:.85}

/* ── Checklist (the /kont portal) ─────────────────────────────────────────── */
.list{display:flex;flex-direction:column;gap:10px}
.item{display:flex;gap:13px;align-items:center;padding:14px 15px;background:var(--vv-card);border-radius:var(--r-lg);box-shadow:var(--vv-e1);color:inherit}
.item__ico{flex:none;width:38px;height:38px;border-radius:11px;display:flex;align-items:center;justify-content:center;background:var(--vv-page);box-shadow:inset 0 0 0 1.5px var(--vv-line);color:var(--ink-faint)}
.item.done .item__ico{background:linear-gradient(160deg,var(--vv-acc-a),var(--vv-acc-b));color:var(--vv-on-acc);box-shadow:var(--vv-btn-shadow)}
.item__mid{flex:1;min-width:0}
.item__t{display:block;font-weight:700;font-size:14.5px;line-height:1.35}
.item__s{display:block;font-size:12.5px;color:var(--ink-faint);margin-top:3px;line-height:1.4}
.pill{font-size:11px;font-weight:800;letter-spacing:.5px;text-transform:uppercase;padding:4px 9px;border-radius:var(--r-full);white-space:nowrap}
.pill--done{background:var(--vv-ok-tint);color:var(--vv-ok)}
.pill--todo{background:var(--vv-tint);color:var(--vv-tint-ink)}
.pill--wait{background:var(--vv-wait-tint);color:var(--vv-wait)}

.meter{height:9px;border-radius:var(--r-full);background:var(--vv-fill);overflow:hidden;margin:10px 0 6px}
.meter i{display:block;height:100%;border-radius:var(--r-full);background:var(--vv-acc-a);transition:width .8s var(--ease)}

/* ── Turnstile ──────────────────────────────────────────────────────────────
   One visible widget per step that can send an OTP, torn down with the step.
   It must never be hidden or off-screen: Turnstile will not solve a challenge
   it cannot see, which is how an earlier "park it off-screen so it survives
   navigation" design failed — it survived, then never produced another token. */
.cf{margin:4px 0 14px;min-height:0}
/* The widget must be VISIBLE — Turnstile refuses to solve a challenge it
   cannot see, which is how the previous off-screen design failed. */
.cf{display:flex;justify-content:center}
.cf:empty{display:none}

/* ── Step transitions ─────────────────────────────────────────────────────── */
.step-in{animation:stepIn .38s var(--ease) both}
@keyframes stepIn{from{opacity:0;transform:translateY(14px) scale(.99)}to{opacity:1;transform:none}}


@media (max-width:359px){
  .otp{gap:5px}
  .pad{gap:8px}
  .tiles--3{gap:7px}
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}
  .explode>*{transform:none;animation:none}
  .btn:active,.pad button:active,.tile:active{transform:none}
}

/* ── Utilities ─────────────────────────────────────────────────────────────
   These exist because the sign-up pages ship `style-src 'self'` with NO
   'unsafe-inline' (see the CSP in build-signup-pages.py). That is a
   deliberately stronger policy than the marketing pages carry, because these
   pages hold session tokens — so every style attribute that would normally be
   written inline lives here as a class instead. Dynamic values (progress
   width, score meter) are set through CSSOM, which CSP permits.
   ------------------------------------------------------------------------ */
.u-center{text-align:center}
.u-link{color:var(--sig-deep);font-weight:700}
.u-pt0{padding-top:0}
.u-pb0{padding-bottom:0}
.u-mb22{margin-bottom:22px}
.u-mb18{margin-bottom:18px}
.u-mt14{margin-top:14px}
.u-mt20{margin-top:20px}
.u-mb9{margin-bottom:9px}
.sp-14{height:14px}
.sp-16{height:16px}
.sp-20{height:20px}

.tile__time{display:block;font-size:12px;margin-top:7px;font-weight:700;color:var(--ink-dim)}

.points{list-style:none;font-size:14.5px;line-height:1.5}
.points li{display:flex;gap:11px;align-items:flex-start;margin-bottom:11px}
.points li:last-child{margin-bottom:0}
.points li>span:first-child{flex:none;margin-top:3px;color:var(--sig-deep)}

.ens-prog__fill{width:0}
.meter i{width:0}

.score-row{display:flex;justify-content:space-between;align-items:baseline}
.score-row .f__label{margin:0}
.score-val{font:700 17px/1 var(--font-mono);color:var(--brand-navy)}

.lede--tight{margin:10px auto 22px}
.avatar-hint{text-align:center;margin-bottom:18px}
.resend-wrap{text-align:center;margin-top:16px}
.hidden{display:none}

/* ── App cards (/telechaje/apple, /telechaje/google) ───────────────────────
   The same white v5 card as the funnel's choice tiles, but these are content, not
   controls: the whole card is not clickable, because a card can carry either a
   real download link or a "not yet — sign up on the web" pair, and a card that
   is itself a link cannot hold two destinations honestly.
   ------------------------------------------------------------------------ */
.apps{display:flex;flex-direction:column;gap:14px;margin-bottom:22px}
.appcard{
  background:var(--vv-card); border-radius:var(--vv-r-card); padding:18px;
  box-shadow:var(--vv-e1);
}
.appcard__top{display:flex;gap:14px;align-items:flex-start;margin-bottom:14px}
/* App icons: a rounded square on BOTH platforms.
   The circle mask tried earlier was technically how a Pixel launcher renders
   an adaptive icon, but it cropped the mark tighter than either store shows
   it and made the three icons read as three different shapes on one page.
   One squircle everywhere is calmer and is what both store listings actually
   display. The hairline ring matters: the client icon is white artwork on a
   white background, and without an edge it dissolves into the card. */
.appcard__ico{
  flex:none;width:76px;height:76px;border-radius:23%;
  background:var(--vv-card);
  box-shadow:
    0 6px 14px -6px rgba(4,44,83,.30),
    0 0 0 1px var(--vv-line);
}
.appcard__ico--apple,.appcard__ico--google{border-radius:23%}
.appcard__body{flex:1;min-width:0}
.appcard__who{
  display:block;font-size:11px;letter-spacing:.9px;text-transform:uppercase;
  font-weight:700;color:var(--sig-deep);margin-bottom:3px;
}
.appcard__name{
  font-family:var(--font-display);font-size:21px;line-height:1.15;
  letter-spacing:-.3px;color:var(--vv-ink);font-weight:600;margin-bottom:5px;
}
.appcard__sub{font-size:14px;line-height:1.45;color:var(--ink-dim)}
.appcard__note{
  font-size:13px;line-height:1.5;color:var(--vv-wait);
  background:var(--vv-wait-tint);border:1px solid transparent;
  border-radius:var(--r-md);padding:11px 13px;margin-bottom:12px;
}
.appcard__head{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.appcard .btn{min-height:50px}
.appcard--soon{background:var(--vv-card2)}

.dl-foot{display:flex;flex-direction:column;gap:12px;align-items:center;text-align:center;margin-top:6px}
/* Every link here is a 44 px target (the board's floor). */
.dl-foot a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;font-weight:700;color:var(--sig-deep)}
.dl-note{font-size:13px;color:var(--ink-faint)}
a.dl-note,.dl-note a{display:inline-flex;align-items:center;min-height:44px}

@media (min-width:640px){
  .appcard__ico{width:84px;height:84px}
}

/* ══ DESKTOP ═══════════════════════════════════════════════════════════════
   Mobile-first does not mean mobile-only. Below, three things stop behaving
   like a phone screen that happened to be opened on a laptop:

   1. THE ACTION RETURNS TO THE FORM. On a phone the primary button is docked
      to the bottom of the viewport, which is correct — it sits under the
      thumb. On a 900px-tall desktop window that same rule stranded "Kontinye"
      hundreds of pixels below the field it submits, with dead space between
      them. From 640px up the dock is a normal row directly beneath the card.

   2. BUTTONS ARE SIZED TO THEIR LABEL. A full-width button is right on a
      360px phone and absurd at 528px wide for a 23-character label. From
      640px they size to content and sit on one row, primary first.

   3. CHOICES SPREAD, FORMS DO NOT. A set of options (roles, apps) should use
      the width it is given; a form field should not. `data-layout` says which
      kind of page this is, so the hub and the download pages open into a grid
      while the wizard stays a readable column — a 1000px-wide text input is
      worse, not better.
   ────────────────────────────────────────────────────────────────────────── */
@media (min-width:640px){
  .ens-main{padding:36px 24px 24px}
  body.ens{padding-bottom:0}
  .docs{grid-template-columns:repeat(3,1fr)}

  /* 1 — the dock rejoins the page.
     body.ens is a column flexbox and .ens-main carries flex:1, which on a
     phone is what pins the dock to the bottom of the screen — correct there.
     On a tall desktop window that same rule pushed the button hundreds of
     pixels below the form. Main stops growing here; content sits at the top
     and the action follows it immediately. */
  .ens-main{flex:0 0 auto}
  .ens-dock{position:static;background:none;padding:0 24px 40px}
  .ens-dock__in{max-width:calc(560px - 48px);flex-direction:row;align-items:center;gap:12px;flex-wrap:wrap}

  /* 2 — buttons fit their label */
  .btn{width:auto;min-width:210px;padding:15px 30px}
  .btn--ghost{min-width:0;padding:12px 16px}
  .btn--soft{min-width:190px}
  /* The primary leads; secondary actions follow it, never stacked below. */
  .ens-dock__in .btn--go{order:0}
  .ens-dock__in .btn--ghost{order:1}
}

/* 3 — pages that are a set of CHOICES get room to breathe.
   Two columns first: three across a 768px tablet wraps every button label
   onto two lines, which looks accidental. Three only once there is room. */
@media (min-width:720px){
  body[data-layout="grid"] .ens-main{max-width:1060px}
  /* A one-sentence lede introducing a row of cards should sit on one line
     when the row is that wide; 44ch would break it in half for no reason. */
  body[data-layout="grid"] .ens-lede{max-width:none}
  body[data-layout="grid"] .tiles:not(.tiles--3){grid-template-columns:repeat(2,1fr);align-items:stretch}
  body[data-layout="grid"] .tile{display:flex;flex-direction:column}
  body[data-layout="grid"] .tile__sub{flex:1}
  .apps{display:grid;grid-template-columns:repeat(2,1fr);gap:20px;align-items:stretch}
  /* Three cards in two columns leaves the third stranded beside an empty half.
     An odd last card spans the row instead, so the grid always looks decided
     rather than short one item. Same for the role tiles on /enskri. */
  .apps>:last-child:nth-child(odd){grid-column:1/-1}
  body[data-layout="grid"] .tiles:not(.tiles--3)>:last-child:nth-child(odd){grid-column:1/-1}
  .appcard{display:flex;flex-direction:column}
  .appcard__top{flex-direction:column;gap:12px;flex:1}
  .appcard__sub{flex:1}
  /* The three calls to action line up along the bottom of the row even though
     one card carries an extra explanatory note. Ragged CTAs read as an
     accident; a straight line reads as a decision. */
  /* "Telechaje sou Google Play" is four characters longer than the App Store
     label and wrapped to two lines inside a third of the row, which left the
     three buttons ragged. Tighter side padding keeps every label on one line
     in all three languages. */
  .appcard .btn{width:100%;min-width:0;margin-top:auto;padding-left:14px;padding-right:14px;font-size:15px}
  .appcard__ico{width:88px;height:88px}
}

@media (min-width:980px){
  body[data-layout="grid"] .tiles:not(.tiles--3){grid-template-columns:repeat(3,1fr)}
  .apps{grid-template-columns:repeat(3,1fr);gap:24px}
  /* Three columns hold three cards exactly — the orphan span above would now
     stretch the last card across the whole row for no reason. */
  .apps>:last-child:nth-child(odd),
  body[data-layout="grid"] .tiles:not(.tiles--3)>:last-child:nth-child(odd){grid-column:auto}
}

/* The landing pages put the pitch beside the form instead of a metre above it.
   Kept to one wide breakpoint: below this, stacked is genuinely better. */
@media (min-width:1000px){
  body.ens[data-hero="1"][data-view="entry"]{
    max-width:1140px;margin:0 auto;
    display:grid;grid-template-columns:1.05fr .95fr;
    column-gap:56px;align-content:start;grid-template-rows:auto auto 1fr;
  }
  body.ens[data-hero="1"][data-view="entry"] > .ens-top{grid-column:1/-1}
  /* The pitch spans both content rows so the form and its button stack tightly
     in the right column. Without the span, row 2 stretches to the height of
     the taller left column and drops the button ~100px below the field it
     submits — the same "where did the button go" problem the fixed dock had
     on desktop, reintroduced by the grid. */
  body.ens[data-hero="1"][data-view="entry"] > #ensHero{grid-column:1;grid-row:2/span 2;padding-right:0}
  body.ens[data-hero="1"][data-view="entry"] > #ensMain{grid-column:2;grid-row:2;padding-top:36px;padding-bottom:0}
  body.ens[data-hero="1"][data-view="entry"] > .ens-dock{grid-column:2;grid-row:3;padding-top:14px;align-self:start}
  body.ens[data-hero="1"][data-view="entry"] .ens-h1{font-size:clamp(30px,3.1vw,42px)}
  body.ens[data-hero="1"][data-view="entry"] .ens-lede{font-size:16px}
}

/* ══ THE SITE MENU ON THE ENTRY PAGES ══════════════════════════════════════
   The hub, the role landings and /konekte carry index.html's site menu
   (header.chrome + the generated assets/site-menu.css) and, hidden, the step
   header: a flow started on an entry page renders its steps in place
   (pushState), and they must look exactly like the step pages — focused
   header, progress, no menu (owner decision 2A, 2026-10-21). The markup starts
   at data-view="entry"; enskri.js sets it on every render.
   ────────────────────────────────────────────────────────────────────────── */
body.ens[data-menu][data-view="entry"] > .ens-top{display:none}
body.ens[data-menu][data-view="step"] > .chrome{display:none}
/* The room the menu keeps (sidebar, tab bar) goes with it. */
body.ens[data-menu][data-view="step"]{padding-left:0;padding-bottom:0}
/* The skip link must surface above the sidebar (z-index 200), as on index.html. */
body.ens[data-menu] .sr-only:focus{z-index:1000}

/* Phones, entry pages: the actions join the page right under the consent line,
   as they already do from 640px (row 308 (a), ruling «A», 26 Nov 2026). Pinned
   above the tab bar they covered the line at 320–390px — with the captcha the
   line sat up to 369px under them — so «Kontinye» could be tapped before the
   line had ever been on screen. In the page, the line always comes first, at
   any size, language or text size, and nothing pinned covers it. The tab bar
   stays where it is; site-menu.css keeps the page's room for it. The in-place
   steps (data-view="step") keep their pinned dock: they have no tab bar and no
   consent line. One block on purpose: the pinned dock is this block's swap. */
@media (max-width:639px){
  body.ens[data-menu][data-view="entry"] > #ensMain{flex:0 0 auto;padding-bottom:0}
  body.ens[data-menu][data-view="entry"] > .ens-dock{position:static;background:none;padding:18px 16px 28px}
}
/* Tablets: the dock rejoins the page at 640px and body.ens drops its bottom
   padding, which also dropped the room the menu keeps for its floating tab
   bar — so the last button or link of the page ended under it. */
@media (min-width:640px) and (max-width:999px){
  body.ens[data-menu][data-view="entry"]{padding-bottom:calc(var(--tabbar-h) + 30px + env(safe-area-inset-bottom,0px))}
}

/* The landing grid is centred in the room right of the sidebar: 1140px of
   content, as before, plus the sidebar's own width. The menu header spans the
   grid's first row (it holds only the fixed sidebar and the hidden sprite). */
@media (min-width:1000px){
  body.ens[data-menu][data-hero="1"][data-view="entry"]{max-width:calc(1140px + var(--sb-w) + var(--sb-inset) * 2)}
  body.ens[data-menu][data-hero="1"][data-view="entry"] > .chrome{grid-column:1/-1}
}
