/* echivo.app — registration event page (v26 / v26b, /tickets/iesi-din-grafic). v26b: the form moved into a popup
   (evreg-popup.css); the page keeps a registration card with the gold button. Dusk theme (dusk.css): the landing's purple
   background and gold accent. Hero: the poster (with a soft glow in its own green) beside the name, the facts and the
   gold button; then the description and the registration form on a solid ink card. Form colours are chosen for WCAG AA
   on that card (#0b1020): labels/inputs #f6f3ec, hints .62 white, errors #ff9aa6, field borders .42 white (≥ 3:1).
   Motion only under html.fx (never html.lite / reduced motion): the hero rises in once. */
.er{--er-card:#0b1020;--er-err:#ff9aa6;--er-tone:64,220,112}

/* ---- hero ---- */
.er-hero{width:100%;max-width:calc(var(--dk-max) + 2*var(--gutter));margin-inline:auto;padding:var(--sp-4) var(--gutter) var(--sp-10);display:grid;gap:var(--sp-8)}
/* the glow may reach past the screen edge on phones: clip it sideways only */
.er-top{overflow-x:clip}
.er-poster{position:relative;margin:0 auto;width:min(74vw,340px)}
.er-poster img{position:relative;display:block;width:100%;height:auto;border-radius:18px;
  box-shadow:0 0 0 1px rgba(var(--er-tone),.42),0 40px 80px -30px rgba(0,0,0,.9)}
.er-glow{position:absolute;inset:-22%;border-radius:50%;pointer-events:none;
  background:radial-gradient(closest-side,rgba(var(--er-tone),.46),rgba(var(--er-tone),.14) 55%,transparent 76%)}
.er-kicker{display:flex;align-items:center;gap:.7em;margin:0;font-size:.72rem;letter-spacing:.2em;color:var(--gold);font-weight:700}
.er-dot{width:8px;height:8px;border-radius:50%;background:var(--gold)}
.er-title{margin:.28em 0 0;font-size:clamp(2.7rem,12.5vw,5rem);line-height:.92;font-weight:900;letter-spacing:-.035em;color:var(--text);text-wrap:balance;overflow-wrap:anywhere}
.er-sub{margin:.9em 0 0;font-size:1.12rem;line-height:1.4;font-weight:500;color:var(--text-2);max-width:30ch;text-wrap:balance}
.er-quick{list-style:none;margin:var(--sp-6) 0 0;padding:0;border-top:1px solid var(--hair)}
.er-quick li{display:grid;grid-template-columns:108px minmax(0,1fr);column-gap:var(--sp-3);padding:13px 0;border-bottom:1px solid var(--hair);font-size:.95rem;line-height:1.4}
.er-quick__k{color:var(--text-2);font-size:.7rem;letter-spacing:.14em;text-transform:uppercase;font-weight:700;padding-top:.28em}
.er-quick__v{color:var(--text);font-weight:600}
.er-cta{margin:var(--sp-6) 0 0}
.er-cta[hidden]{display:none}
.er-cta .btn{min-width:220px}

/* ---- body ---- */
.er-main{width:100%;max-width:calc(var(--dk-max) + 2*var(--gutter));margin-inline:auto;padding:var(--sp-4) var(--gutter) 0}
.er-cols{display:grid;gap:var(--sp-10)}
.er-content{min-width:0;order:2}
.er-aside{min-width:0;order:1;scroll-margin-top:16px}
.er-sec + .er-sec{margin-top:var(--sp-10)}
.er-sec[hidden]{display:none}
.er-h2{margin:0 0 var(--sp-3);font-size:1.5rem;line-height:1.15;font-weight:800;letter-spacing:-.02em;color:var(--text)}
.er-prose p{margin:0 0 var(--sp-4);font-size:1rem;line-height:1.65;color:rgba(246,243,236,.82);max-width:66ch;overflow-wrap:anywhere}
.er-prose p:last-child{margin-bottom:0}
.er-topics{list-style:none;margin:var(--sp-5) 0 0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.er-topics:empty{display:none}
.er-topics li{padding:.5em .95em;border-radius:999px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.16);font-size:.85rem;line-height:1.3;font-weight:700;color:var(--text)}
.er-facts{margin:0;border-top:1px solid var(--hair)}
.er-facts div{display:grid;grid-template-columns:120px minmax(0,1fr);column-gap:var(--sp-4);padding:14px 0;border-bottom:1px solid var(--hair);font-size:.95rem;line-height:1.45}
.er-facts dt{color:var(--text-2);font-size:.7rem;letter-spacing:.14em;text-transform:uppercase;font-weight:700;padding-top:.3em}
.er-facts dd{margin:0;color:var(--text);font-weight:550}
.er-link{color:var(--gold);font-weight:700;text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px;display:inline-block;padding:12px 0;margin:-6px 0}  /* 44 px tap target, same layout */
.er-link:focus-visible,.er-fine a:focus-visible{outline:2px solid #fff;outline-offset:3px;border-radius:4px}

/* ---- the registration card (v26b): the form itself lives in the popup (evreg-popup.css); the card says what it
   takes and holds the gold button. Solid ink, so every colour on it has a known contrast. ---- */
.er-card{background:var(--er-card);border-radius:24px;border:1px solid rgba(255,255,255,.14);padding:var(--sp-6) var(--sp-5);
  box-shadow:0 0 0 1px rgba(245,200,130,.14),0 40px 80px -40px rgba(0,0,0,.9)}
.er-card__title{margin:0;font-size:1.6rem;line-height:1.1;font-weight:900;letter-spacing:-.025em;color:var(--text)}
.er-card__title:focus{outline:none}
.er-card__lede{margin:10px 0 0;font-size:.95rem;line-height:1.5;color:rgba(246,243,236,.8)}
.er-card__lede[hidden]{display:none}
.er-reg__head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.er-reg__tag{display:inline-flex;align-items:center;gap:7px;padding:5px 11px 5px 9px;border-radius:999px;border:1px solid rgba(var(--er-tone),.5);
  background:rgba(var(--er-tone),.12);color:#9cf7bb;font-size:.72rem;line-height:1.2;letter-spacing:.14em;text-transform:uppercase;font-weight:800;white-space:nowrap}
.er-reg__tag::before{content:"";width:6px;height:6px;border-radius:50%;background:#6bf099}
.er-steps{list-style:none;margin:var(--sp-5) 0 0;padding:0;display:grid;gap:0;border-top:1px solid var(--hair)}
.er-steps[hidden]{display:none}
.er-steps li{display:grid;grid-template-columns:28px minmax(0,1fr);column-gap:12px;align-items:start;padding:12px 0;border-bottom:1px solid var(--hair);
  font-size:.93rem;line-height:1.45;color:var(--text);font-weight:550}
.er-steps__n{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;margin-top:-3px;
  background:rgba(245,200,130,.12);border:1px solid rgba(245,200,130,.45);color:var(--gold);font-size:.8rem;font-weight:800;font-variant-numeric:tabular-nums}
.er-reg__act{margin:var(--sp-5) 0 0}
.er-reg__act[hidden],.er-cta[hidden]{display:none}
.er-reg__btn{width:100%;min-height:56px}
.er-fine{margin:12px 0 0;font-size:.8rem;line-height:1.5;color:rgba(246,243,236,.62)}
.er-fine[hidden]{display:none}
.er-note{margin:var(--sp-4) 0 0;padding:14px 16px;border-radius:14px;background:rgba(255,255,255,.07);border:1px solid var(--hair);font-size:.95rem;line-height:1.45;color:var(--text);font-weight:600}
.er-note[hidden]{display:none}
.er-reg__done{margin:var(--sp-4) 0 0;padding:16px;border-radius:16px;background:rgba(245,200,130,.1);border:1px solid rgba(245,200,130,.4)}
.er-reg__done[hidden]{display:none}
.er-reg__done-t{margin:0;display:flex;align-items:center;gap:10px;font-size:1.1rem;line-height:1.3;font-weight:800;color:var(--text)}
.er-reg__tick{flex:none;width:26px;height:26px;border-radius:50%;background:var(--gold);display:grid;place-items:center}
.er-reg__tick::after{content:"";width:10px;height:5px;border:solid #1a1206;border-width:0 0 2.5px 2.5px;transform:translateY(-1px) rotate(-45deg)}
.er-reg__done-x{margin:8px 0 0;font-size:.88rem;line-height:1.5;color:#ffe4b5}
.er-reg .er-fine{text-align:center}
@media (min-width:900px){ .er-reg .er-fine{text-align:left} }

/* ---- phones: sticky bottom button (evreg.js toggles .is-on: off while the popup is open, while the card's own button is on
   screen, and for good once registered / closed) ---- */
.er-bar{position:fixed;z-index:40;left:0;right:0;bottom:0;padding:22px var(--gutter) calc(14px + env(safe-area-inset-bottom,0px));
  background:linear-gradient(180deg,rgba(5,7,13,0),rgba(5,7,13,.86) 46%);
  opacity:0;visibility:hidden;transform:translateY(16px);pointer-events:none;
  transition:opacity .25s ease,transform .35s var(--ease-out),visibility 0s .35s}
.er-bar.is-on{opacity:1;visibility:visible;transform:none;pointer-events:auto;transition:opacity .25s ease,transform .35s var(--ease-out)}
.er-bar[hidden]{display:none}
html.lite .er-bar,html.rm .er-bar,html.lite .er-bar.is-on,html.rm .er-bar.is-on{transition:none;transform:none}
@media (max-width:899px){ body.er{padding-bottom:calc(96px + env(safe-area-inset-bottom,0px))}
  /* the sticky button replaces the hero button on phones (only once evreg.js has it running) */
  body.er.has-bar .er-cta{display:none} }
@media (min-width:900px){ .er-bar{display:none} }

@media (min-width:900px){
  .er-hero{grid-template-columns:minmax(300px,400px) minmax(0,1fr);gap:clamp(48px,6vw,84px);align-items:center;padding-top:var(--sp-8);padding-bottom:var(--sp-16)}
  .er-poster{width:100%;margin:0}
  .er-title{font-size:clamp(3.6rem,6.4vw,5.8rem)}
  .er-sub{font-size:1.3rem;max-width:none}
  .er-cols{grid-template-columns:minmax(0,1fr) 420px;gap:64px;align-items:start}
  .er-content{order:1}
  .er-aside{order:2;position:sticky;top:24px}
  .er-card{padding:var(--sp-8) var(--sp-6)}
}
@media (max-width:359px){ .er-quick li,.er-facts div{grid-template-columns:1fr} }

/* ---- hero entry (once, full-effects mode only) ---- */
@keyframes er-poster-in{from{opacity:0;transform:translateY(34px) rotate(-2.5deg) scale(.95)}to{opacity:1;transform:none}}
@keyframes er-glow-in{from{opacity:0;transform:scale(.7)}to{opacity:1;transform:none}}
@keyframes er-up{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
html.fx .er-poster img{animation:er-poster-in 1s var(--ease-out) .05s both}
html.fx .er-glow{animation:er-glow-in 1.4s var(--ease-out) .25s both}
html.fx .er-intro > *{animation:er-up .8s var(--ease-out) both}
html.fx .er-intro > :nth-child(1){animation-delay:.12s} html.fx .er-intro > :nth-child(2){animation-delay:.18s}
html.fx .er-intro > :nth-child(3){animation-delay:.26s} html.fx .er-intro > :nth-child(4){animation-delay:.34s}
html.fx .er-intro > :nth-child(5){animation-delay:.42s}

@media print{ .er-aside,.er-cta,.er-bar,.dk-header__link,.v2-footer{display:none} body.dusk{background:#fff;color:#000} body.dusk::before{display:none} .er-title,.er-quick__v,.er-h2,.er-prose p,.er-facts dd{color:#000} }
