/* Inter (same family as the desktop app), self-hosted — CSP allows 'self' only */
@font-face{font-family:"Inter";font-style:normal;font-weight:100 900;font-display:swap;src:url("/d2hw/assets/fonts-inter/inter-cyrillic-wght-normal.woff2") format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Inter";font-style:normal;font-weight:100 900;font-display:swap;src:url("/d2hw/assets/fonts-inter/inter-latin-wght-normal.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}/* D2HW redesign layer — loaded after all legacy stylesheets.
   Palette: obsidian + Radiant crimson + Dota gold. No external fonts/CDN (strict CSP). */
:root{
  color-scheme:dark;
  /* Palette taken from the desktop app (DotaVpk.Desktop/App.axaml) */
  --bg:#0B0B0C; --surface:#111113; --surface-2:#19171C; --input:#141315;
  --text:#F0ECE4; --muted:#969087; --line:#29272B; --line-strong:#3b3640;
  --accent:#CABBE9; --accent-soft:#DDD6CC; --on-primary:#151515; --hover:#25212B;
  --warning:#D6B88F; --bad:#E3AAAA; --good:#a4c3ae; --landing-accent:#CABBE9;
  --gold:var(--accent); --accent-hi:var(--accent); --accent-deep:var(--accent);
  --radius:14px; --ring:0 0 0 2px var(--bg),0 0 0 4px var(--accent);
  font-family:"Inter","Segoe UI",system-ui,Arial,sans-serif;font-feature-settings:"cv11","ss03";
}html{scroll-behavior:auto;overflow-anchor:none}
body{
  background:
    radial-gradient(1100px 620px at 78% -8%,rgba(202,187,233,.10),transparent 60%),
    radial-gradient(800px 500px at 4% 12%,rgba(202,187,233,.04),transparent 60%),
    var(--bg);
  color:var(--text);line-height:1.55;-webkit-font-smoothing:antialiased;
}
::selection{background:var(--accent);color:#fff}
:focus-visible{outline:none;box-shadow:var(--ring);border-radius:8px}
h1,h2,h3{letter-spacing:-.03em;font-weight:700}.brand{letter-spacing:.12em}
a{color:var(--gold)}
a:hover{color:#E6DDF5}

/* ---------- Header ---------- */
.header{position:sticky;top:0;z-index:20;backdrop-filter:blur(14px) saturate(1.2);
  background:linear-gradient(180deg,rgba(7,6,10,.92),rgba(7,6,10,.6));border-bottom:1px solid var(--line)}
.brand{display:inline-flex;align-items:center;gap:.6rem;font-weight:700;letter-spacing:.14em;color:var(--text);text-decoration:none}
.brand::before{content:"";width:26px;height:26px;background:var(--accent);
  mask:var(--dota-mask) center/contain no-repeat;-webkit-mask:var(--dota-mask) center/contain no-repeat;
  filter:drop-shadow(0 0 8px rgba(202,187,233,.55))}
.brand svg{display:none}
.brand-beta{font-size:.7rem;padding:.1rem .45rem;border:1px solid var(--gold);color:var(--gold);border-radius:999px;letter-spacing:0}
.nav-login,.header-features{color:var(--text);text-decoration:none;opacity:.9}
.nav-login{border:1px solid var(--line-strong);padding:.5rem .95rem;border-radius:999px;transition:.2s}
.nav-login:hover{border-color:var(--accent);background:var(--hover)}

/* ---------- Buttons ---------- */
button.primary,a.primary,.primary{
  background:var(--text);color:var(--on-primary);border:1px solid transparent;border-radius:12px;font-weight:650;
  text-decoration:none;transition:transform .15s,background .2s,box-shadow .2s}.primary:hover{transform:translateY(-1px);background:var(--accent-soft);color:var(--on-primary);box-shadow:0 10px 30px -12px rgba(202,187,233,.5)}
.primary:active{transform:none}
.primary:disabled{opacity:.45;box-shadow:none;cursor:not-allowed}
button.secondary,a.secondary,.secondary{background:var(--surface-2);color:var(--text);border:1px solid var(--line-strong);border-radius:12px;text-decoration:none;transition:.2s}
.secondary:hover{border-color:var(--gold);color:#fff}
button,.primary,.secondary,.quiet{min-height:44px}
.quiet{color:var(--muted)} .quiet:hover{color:var(--text)}

/* ---------- Landing (new structure) ---------- */
main{max-width:1180px;margin-inline:auto;padding-inline:clamp(16px,4vw,32px)}
#landing{display:block;padding-block:clamp(24px,5vw,72px) 0}
#landing .l-hero{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);align-items:center;gap:clamp(24px,5vw,72px);min-height:min(76vh,640px);text-align:left;padding:0;margin:0}
#landing .l-kicker{display:flex;align-items:center;gap:.65rem;margin:0 0 1.25rem;color:var(--gold);font-size:.78rem;font-weight:700;letter-spacing:.24em}
#landing .l-pulse{width:8px;height:8px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 0 rgba(202,187,233,.7);animation:pulse 2.4s infinite}
#landing .l-beta{border:1px solid var(--gold);border-radius:999px;padding:0 .5rem;letter-spacing:0;font-size:.72rem}
@keyframes pulse{70%{box-shadow:0 0 0 10px rgba(202,187,233,0)}100%{box-shadow:0 0 0 0 rgba(202,187,233,0)}}
#landing h1{margin:0;font-size:clamp(2.4rem,5.4vw,4.6rem);font-weight:650;letter-spacing:-.04em;line-height:1.05;text-wrap:balance;color:var(--text)}
#landing h1 .dota-symbol{width:.78em;height:.78em;flex:none;margin-left:.08em;translate:0 .05em}
#landing .l-lead{max-width:34rem;margin:1.5rem 0 0;font-size:clamp(1.05rem,1.6vw,1.25rem);color:var(--muted)}
#landing .l-actions{display:flex;flex-wrap:wrap;gap:.8rem;margin-top:2rem}
#landing .l-actions a{display:inline-flex;align-items:center;gap:.5rem;padding:.85rem 1.4rem}
#landing .l-note{margin:1.4rem 0 0;color:var(--muted);font-size:.9rem}
#landing .l-note .beta-link{background:none;border:0;padding:0;min-height:0;color:var(--gold);text-decoration:underline;text-underline-offset:3px;cursor:pointer;font:inherit}
#landing .l-art{position:relative;display:grid;place-items:center;aspect-ratio:1}
#landing .l-art::before{content:"";position:absolute;inset:4%;border-radius:50%;
  background:radial-gradient(closest-side,rgba(202,187,233,.42),rgba(202,187,233,.08) 60%,transparent 72%)}
#landing .l-art::after{content:"";position:absolute;inset:0;border-radius:50%;border:1px solid rgba(202,187,233,.25);
  background:conic-gradient(from 0deg,transparent 0 72%,rgba(202,187,233,.55) 90%,transparent 100%);
  mask:radial-gradient(circle,transparent calc(70% - 1px),#000 70%,#000 calc(70% + 1px),transparent calc(70% + 2px));
  -webkit-mask:radial-gradient(circle,transparent calc(70% - 1px),#000 70%,#000 calc(70% + 1px),transparent calc(70% + 2px));
  animation:spin 24s linear infinite}
@keyframes spin{to{transform:rotate(1turn)}}
#landing .l-logo{position:relative;width:56%;aspect-ratio:1;
  background:linear-gradient(155deg,#E6DDF5,var(--accent) 55%,#a597c8);
  mask:var(--dota-mask) center/contain no-repeat;-webkit-mask:var(--dota-mask) center/contain no-repeat;
  filter:drop-shadow(0 18px 50px rgba(202,187,233,.4));animation:float 7s ease-in-out infinite}
@keyframes float{50%{transform:translateY(-10px) rotate(-1.5deg)}}

#landing .l-build{width:100%;max-width:none;box-sizing:border-box;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin:clamp(24px,4vw,56px) 0 0;padding:0}
#landing .l-build .composition-line,#landing .l-build .composition-label{display:none}
#landing .build-chip{display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;column-gap:1rem;align-items:center;
  text-align:left;padding:1.1rem 1.25rem;color:var(--text);transform:none!important;rotate:none;margin:0;width:auto;cursor:default}
#landing button.build-chip{cursor:pointer}
#landing .build-chip .icon-slot{grid-row:1/3;display:grid;place-items:center;width:52px;height:52px;border-radius:12px;background:var(--input);border:1px solid var(--line);color:var(--accent)}
#landing .build-chip .icon-slot svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.5}
#landing .build-chip .icon-slot img.item-emote{width:36px;height:36px;object-fit:contain}
#landing .l-chip-title{font-weight:700;font-size:1.05rem;align-self:end}
#landing .build-chip .chip-detail{color:var(--muted);font-size:.85rem;align-self:start;display:block}

#landing .l-block{margin:clamp(40px,7vw,96px) 0 0;max-width:none;padding:0;background:none;border:0;border-radius:0}
#landing .l-block h2{margin:0 0 1.25rem;font-size:clamp(1.7rem,3vw,2.3rem);font-weight:650;letter-spacing:-.03em}
#landing .comparison-section{display:block}
#landing .video-comparison{border-radius:var(--radius);overflow:hidden;border:1px solid var(--line);min-height:260px;position:relative;background:var(--surface)}
#landing .comparison-empty{display:grid;place-items:center;align-content:center;gap:.4rem;min-height:260px;text-align:center;color:var(--muted)}
#landing .comparison-empty p{margin:0;color:var(--text);font-weight:600}
#landing .empty-frame{font-size:2rem;color:var(--accent)}
#landing .feature-section{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:clamp(24px,5vw,72px);align-items:start}
#landing .feature-heading p{color:var(--muted);max-width:26rem}
#landing .feature-heading h2 span{color:inherit}
#landing .feature-details{display:grid;gap:.75rem}
#landing details{padding:0}
#landing summary{display:flex;justify-content:space-between;align-items:center;padding:1.1rem 1.25rem;font-weight:650;cursor:pointer;list-style:none;min-height:44px}
#landing summary::-webkit-details-marker{display:none}
#landing details p{margin:0;padding:0 1.25rem 1.2rem;color:var(--muted)}
#landing details[open] .detail-plus{rotate:45deg}
#landing .detail-plus{transition:rotate .2s;color:var(--accent);font-size:1.4rem}
#landing .access-banner{display:flex;flex-wrap:wrap;gap:1.5rem;align-items:center;justify-content:space-between;padding:clamp(1.5rem,3vw,2.5rem);margin-bottom:clamp(40px,6vw,80px);
  border:1px solid var(--line-strong);border-radius:var(--radius);background:linear-gradient(120deg,rgba(202,187,233,.12),var(--surface) 60%)}
#landing .access-banner h2{margin:0}
#landing .access-banner p{margin:.35rem 0 0;color:var(--muted)}
#landing .access-banner a{padding:.85rem 1.4rem}

@media (max-width:860px){
  #landing .l-hero{grid-template-columns:1fr;min-height:0}
  #landing .l-art{order:-1;width:min(240px,62vw);margin-inline:auto}
  #landing .l-build,#landing .feature-section{grid-template-columns:1fr}
}

/* header container aligned with page */
.header{max-width:none;width:100%;margin:0;box-sizing:border-box;padding-inline:max(16px,calc((100vw - 1180px)/2 + 32px))}
.dota-symbol{background:linear-gradient(160deg,#E6DDF5,var(--accent) 55%,#a597c8)!important;filter:drop-shadow(0 0 .12em rgba(202,187,233,.7))}
/* ---------- Cards / panels / forms ---------- */
.panel,.auth-card,.profile,.comparison-section,details,.access-banner,.build-chip{
  background:var(--surface);
  border:1px solid var(--line);border-radius:var(--radius)}
.panel:hover,.build-chip:hover{border-color:var(--line-strong)}
.build-chip.featured{border-color:rgba(202,187,233,.5);background:var(--hover)}
.access-banner{background:linear-gradient(120deg,rgba(202,187,233,.16),var(--surface) 55%);border-color:var(--line-strong)}
input,select,textarea{background:var(--input);color:var(--text);border:1px solid var(--line-strong);border-radius:10px;min-height:44px;transition:border-color .15s,box-shadow .15s}
input:hover,select:hover,textarea:hover{border-color:#5a4350}
input:focus-visible,select:focus-visible,textarea:focus-visible{border-color:var(--accent);box-shadow:0 0 0 3px rgba(202,187,233,.25)}
input::placeholder{color:#6d646b}
.pill{border:1px solid var(--line-strong);border-radius:999px}
.eyebrow{color:var(--gold);letter-spacing:.2em}
.notice{border-radius:10px}
table{border-collapse:separate;border-spacing:0}
th{color:var(--muted);font-weight:600}
td,th{border-bottom:1px solid var(--line)}
dialog{background:var(--surface);color:var(--text);border:1px solid var(--line-strong);border-radius:18px;box-shadow:0 40px 120px -20px #000}
dialog::backdrop{background:rgba(4,3,6,.78);backdrop-filter:blur(6px)}
footer{border-top:1px solid var(--line);color:var(--muted)}
footer a{color:var(--muted)} footer a:hover{color:var(--text)}

/* ---------- Motion & accessibility ---------- */
.skip-link{position:absolute;left:1rem;top:-4rem;z-index:50;background:var(--text);color:var(--on-primary);padding:.7rem 1rem;border-radius:10px;font-weight:700;text-decoration:none}
.skip-link:focus{top:1rem}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}
@media (prefers-contrast:more){:root{--muted:#cfc7cd;--line:#5a4350}}

body{overflow-x:clip}

main>section{animation:none!important;opacity:1!important}


/* ---------- Cabinet & footer polish ---------- */
.profile{padding:1.5rem;box-sizing:border-box}
.profile .avatar{background:var(--hover);border:1px solid var(--line-strong);color:var(--accent);margin:0 0 1rem}
.profile-email{margin:.25rem 0 .6rem;font-weight:600;overflow-wrap:anywhere}
.account-tabs{margin-top:1.25rem;display:grid;gap:.15rem}
.account-tabs button{width:100%;text-align:left;border-radius:10px;border:0;background:none;color:var(--muted);padding:.65rem .8rem;display:flex;justify-content:space-between;align-items:center}
.account-tabs button:hover{background:var(--hover);color:var(--text)}
.account-tabs button.selected{background:var(--hover);color:var(--text);box-shadow:inset 3px 0 0 var(--accent)}
.section-heading{align-items:end}
.page-title{font-size:clamp(1.9rem,3.6vw,2.8rem);font-weight:650;letter-spacing:-.035em;margin:.2rem 0 0}
footer{max-width:none;width:100%;box-sizing:border-box;margin:clamp(40px,6vw,80px) 0 0;padding:1.5rem max(16px,calc((100vw - 1180px)/2 + 32px));display:flex;flex-wrap:wrap;gap:.75rem 1.5rem;justify-content:space-between;align-items:center;font-size:.88rem}
footer .footer-docs{display:flex;flex-wrap:wrap;gap:.5rem 1.25rem}
footer .quiet{min-height:0;padding:0;background:none;border:0}

/* ---------- Auth & admin polish ---------- */
.auth-layout{max-width:none;width:100%;padding:clamp(24px,5vw,64px) 0;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,460px);gap:clamp(24px,6vw,96px);align-items:center;box-sizing:border-box}
.auth-layout .intro{padding:0;max-width:30rem}
.auth-card{padding:clamp(1.25rem,3vw,2rem)}
.auth-card>a.quiet{display:inline-flex;align-items:center;margin-bottom:.75rem;padding:0}
.segmented{margin-bottom:1.25rem}
@media (max-width:860px){.auth-layout{grid-template-columns:1fr}}
.toolbar{align-items:center;gap:1rem}
#search-form{display:flex;gap:.5rem;align-items:center}
#search-form input{min-width:min(280px,60vw)}
.management-tabs button{padding:.55rem .9rem;border-radius:10px}

/* =====================================================================
   v2 fixes: original brand + beta mark, card icons/eggs, cabinet layout, motion
   ===================================================================== */

/* Original app logo + original italic serif beta mark */
.brand{font-size:18px;font-weight:700;letter-spacing:-.02em;gap:12px;text-transform:none}
.brand::before{content:none!important;display:none}
.brand svg{display:block;flex-shrink:0;color:var(--text);transition:transform .5s cubic-bezier(.2,.7,.3,1),color .2s}
.brand:hover svg{transform:rotate(90deg);color:var(--accent)}
.brand-beta{align-self:flex-start;border:0;border-radius:0;padding:0;font:italic 21px/1 Georgia,serif;color:#cabbe9;margin-left:-5px;letter-spacing:0}
#landing .l-beta{border:0;border-radius:0;padding:0;font:italic 16px/1 Georgia,serif;letter-spacing:0;color:#cabbe9}

/* Cards: keep legacy 34px icon geometry so rapier fragments / bolt line up */
#landing .build-chip{grid-template-columns:34px 1fr;column-gap:1.6rem;padding:1.15rem 1.4rem 1.15rem 1.6rem;position:relative;overflow:hidden;
  transition:transform .3s cubic-bezier(.2,.7,.3,1),border-color .25s,background-color .25s,box-shadow .3s!important;transform:none!important}
#landing .build-chip:hover{transform:translateY(-4px)!important;border-color:rgba(202,187,233,.55);background:var(--surface-2);box-shadow:0 14px 30px -14px rgba(0,0,0,.8)!important}
#landing .build-chip:active{transform:translateY(-1px) scale(.985)!important}
#landing .build-chip::before{content:"";position:absolute;inset:0;background:linear-gradient(100deg,transparent 30%,rgba(202,187,233,.10) 50%,transparent 70%);translate:-100% 0;transition:translate .7s ease;pointer-events:none;height:auto;left:0;right:0;top:0}
#landing .build-chip:hover::before{translate:100% 0}
#landing .build-chip::after{display:none!important}
#landing .build-chip .icon-slot{display:block;position:relative;width:34px;height:34px;border:0;background:none;border-radius:0;z-index:2;grid-column:1;grid-row:1/3;align-self:center;justify-self:center}
#landing .build-chip .icon-slot::before{content:"";position:absolute;inset:-9px;border:1px solid var(--line-strong);border-radius:12px;background:var(--input);z-index:-1;transition:border-color .25s,background-color .25s}
#landing .build-chip:hover .icon-slot::before{border-color:rgba(202,187,233,.6);background:var(--hover)}
#landing .build-chip .icon-slot>svg,#landing .build-chip .icon-slot>.item-emote{position:absolute;inset:0;width:34px;height:34px;margin:0;object-fit:contain;transform-origin:50% 85%;transition:transform .45s cubic-bezier(.2,.7,.3,1)}
#landing .build-chip .icon-slot>svg{fill:none;stroke:var(--accent);stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
#landing .build-chip .icon-secondary{stroke:var(--muted);stroke-width:.9}
#landing .build-chip .rapier-crack{stroke:#E6DDF5}
/* per-card hover motion (transform on the inner icon so JS's translate/rotate on the slot never conflicts) */
#landing .build-chip[data-egg="rapier"]:hover .icon-slot>.item-emote{transform:rotate(-14deg) scale(1.1)}
#landing .build-chip[data-egg="zeus"]:hover .icon-slot>svg{animation:bolt-flicker .9s steps(1,end) infinite}
#landing .build-chip[data-egg="environment"]:hover .icon-slot>svg{animation:tree-sway 1.6s ease-in-out infinite}
@keyframes bolt-flicker{0%,100%{opacity:1;filter:none}15%{opacity:.45}30%{opacity:1;filter:drop-shadow(0 0 6px #CABBE9)}55%{opacity:.7}70%{opacity:1;filter:drop-shadow(0 0 9px #E6DDF5)}}
@keyframes tree-sway{50%{transform:rotate(4deg) translateY(-1px)}0%,100%{transform:rotate(-3deg)}}
/* Rapier break & repair — fragments share the icon's exact box */
#landing .build-chip .rapier-fragments{position:absolute;inset:0;width:34px;height:34px;display:none;pointer-events:none}
#landing .build-chip.rapier-broken .rapier-fragments{display:block}
#landing .build-chip.rapier-broken .icon-slot>.item-emote,#landing .build-chip.rapier-broken .icon-slot>.rapier-crack{visibility:hidden}
#landing .rapier-fragments img{position:absolute;inset:0;width:34px;height:34px;object-fit:contain;transition:none;will-change:transform,opacity}
#landing .rapier-repairing.rapier-broken .rapier-fragments img:first-child{animation:site-blade-repair .9s cubic-bezier(.18,.75,.25,1) both!important}
#landing .rapier-repairing.rapier-broken .rapier-fragments img:last-child{animation:site-hilt-repair .9s cubic-bezier(.18,.75,.25,1) both!important}
#landing .rapier-repairing .icon-slot::after{content:"";position:absolute;inset:-9px;border-radius:12px;box-shadow:0 0 0 0 rgba(202,187,233,.5);animation:repair-pulse .9s ease-out .9s both}
@keyframes repair-pulse{from{box-shadow:0 0 0 0 rgba(202,187,233,.6)}to{box-shadow:0 0 0 14px rgba(202,187,233,0)}}
/* Zeus: all three cards take the hit */
#landing .build-chip.thunder-target{animation:thunder-hit 1.4s ease-out both!important}
#landing .build-chip.zeus-casting .icon-slot>svg{animation:site-lightning 1.1s ease-out both!important}
@keyframes thunder-hit{0%,100%{box-shadow:none;border-color:var(--line)}12%{box-shadow:0 0 0 1px #CABBE9,0 0 36px rgba(202,187,233,.5);border-color:#CABBE9;background:var(--hover)}30%{box-shadow:0 0 0 1px rgba(202,187,233,.4),0 0 18px rgba(202,187,233,.25)}}

/* Cabinet: sidebar no longer stretches/jumps between tabs */
.cabinet-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:clamp(20px,3vw,40px);align-items:start}
.profile{align-self:start;position:sticky;top:96px;height:auto}
.cabinet-content{min-width:0;min-height:420px}
#account-support,#account-notifications{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:clamp(1.1rem,2.5vw,1.75rem);box-sizing:border-box}
#account-support:empty,#account-notifications:empty{display:none}
@media(max-width:860px){.cabinet-layout{grid-template-columns:1fr}.profile{position:static}}

/* Motion: entrances, tab/page transitions, buttons, details */
@keyframes rise{from{opacity:0;translate:0 14px}to{opacity:1;translate:0 0}}
@keyframes fade-in{from{opacity:0}to{opacity:1}}
#landing .l-copy>*{animation:rise .7s cubic-bezier(.2,.7,.3,1) both}
#landing .l-copy>:nth-child(2){animation-delay:.08s}#landing .l-copy>:nth-child(3){animation-delay:.16s}#landing .l-copy>:nth-child(4){animation-delay:.24s}#landing .l-copy>:nth-child(5){animation-delay:.32s}
#landing .l-art{animation:fade-in 1s ease .15s both}
#landing .l-build .build-chip{animation:rise .7s cubic-bezier(.2,.7,.3,1) both}
#landing .l-build>:nth-child(1){animation-delay:.35s}#landing .l-build>:nth-child(2){animation-delay:.45s}#landing .l-build>:nth-child(3){animation-delay:.55s}
@supports (animation-timeline:view()){
  #landing .l-block{animation:rise linear both;animation-timeline:view();animation-range:entry 0% entry 35%}
}
.cabinet-content>*:not([hidden]),#auth .auth-card,#auth .intro,#documents article:not([hidden]),#verification .panel{animation:rise .4s cubic-bezier(.2,.7,.3,1) both}
.account-grid>.panel{animation:rise .45s cubic-bezier(.2,.7,.3,1) both}.account-grid>.panel:nth-child(2){animation-delay:.07s}.account-grid>.panel:nth-child(3){animation-delay:.14s}
.panel{transition:border-color .25s,transform .25s,box-shadow .25s}.panel:hover{transform:translateY(-2px);box-shadow:0 14px 30px -18px #000}
button,.primary,.secondary,.quiet{transition:transform .15s,background-color .2s,border-color .2s,color .2s,box-shadow .25s}
button:active,.primary:active,.secondary:active{transform:scale(.97)}
.primary span[aria-hidden],.secondary span[aria-hidden]{display:inline-block;transition:translate .25s}
.primary:hover span[aria-hidden],.secondary:hover span[aria-hidden]{translate:3px -2px}
.nav-login,.header-features,.account-tabs button,.management-tabs button{transition:background-color .2s,color .2s,border-color .2s,box-shadow .2s}
.header-features{position:relative}.header-features::after{content:"";position:absolute;left:0;right:0;bottom:-4px;height:1px;background:var(--accent);scale:0 1;transform-origin:left;transition:scale .3s}
.header-features:hover::after{scale:1 1}
details summary{transition:color .2s}details summary:hover{color:var(--accent)}
details[open]>p{animation:rise .35s ease both}
#landing .detail-plus{transition:rotate .3s cubic-bezier(.2,.7,.3,1)}
#landing .l-logo{transition:filter .4s}
#landing .l-art:hover .l-logo{filter:drop-shadow(0 24px 60px rgba(202,187,233,.6))}
dialog[open]{animation:rise .3s cubic-bezier(.2,.7,.3,1) both}dialog[open]::backdrop{animation:fade-in .3s ease both}
#notice:not([hidden]){animation:rise .3s ease both}
@media (prefers-reduced-motion:reduce){
  #landing .build-chip:hover,.panel:hover{transform:none!important}
  *,*::before,*::after{animation-duration:.001ms!important;animation-delay:0s!important;animation-iteration-count:1!important;transition-duration:.001ms!important}
}

/* ---------- Landing: stats, steps, feature cards, FAQ ---------- */
#landing .l-stats{list-style:none;margin:clamp(24px,4vw,48px) 0 0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;background:var(--line);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}
#landing .l-stats li{background:var(--surface);padding:1.1rem 1.25rem;display:grid;gap:.15rem}
#landing .l-stats strong{font-size:clamp(1.4rem,2.4vw,1.9rem);font-weight:650;letter-spacing:-.03em;color:var(--text)}
#landing .l-stats span{color:var(--muted);font-size:.88rem}
#landing .l-steps ol{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem;counter-reset:none}
#landing .l-steps li{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:1.4rem;transition:border-color .25s,transform .25s}
#landing .l-steps li:hover{border-color:rgba(202,187,233,.5);transform:translateY(-3px)}
#landing .step-n{display:block;font-size:.78rem;letter-spacing:.2em;color:var(--accent);margin-bottom:.9rem;font-variant-numeric:tabular-nums}
#landing .l-steps h3{margin:0 0 .4rem;font-size:1.1rem}
#landing .l-steps p{margin:0;color:var(--muted);font-size:.93rem}
#landing .l-features{display:block}
#landing .l-features .feature-heading{max-width:38rem;margin-bottom:1.75rem}
#landing .feature-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem}
#landing .feature-cards article{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:1.3rem;transition:border-color .25s,background-color .25s,transform .25s}
#landing .feature-cards article:hover{border-color:rgba(202,187,233,.5);background:var(--surface-2);transform:translateY(-3px)}
#landing .feature-cards h3{margin:0 0 .45rem;font-size:1.05rem}
#landing .feature-cards p{margin:0;color:var(--muted);font-size:.92rem}
#landing .l-faq .faq-list{display:grid;gap:.75rem;max-width:56rem}
#landing .l-faq details p a{color:var(--accent)}
@media (max-width:1060px){#landing .l-steps ol,#landing .feature-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:860px){#landing .l-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:560px){#landing .l-steps ol,#landing .feature-cards{grid-template-columns:1fr}}
@supports (animation-timeline:view()){#landing .l-steps li,#landing .feature-cards article{animation:rise linear both;animation-timeline:view();animation-range:entry 0% entry 40%}}
.document-page article{max-width:46rem}
.document-page h2{margin-top:2.2rem}
.document-page p,.document-page li{line-height:1.7}

/* ---------- Calmer landing: no stats strip, boxes -> hairline lists ---------- */
#landing .l-block{margin-top:clamp(56px,9vw,120px)}
#landing .build-composition.l-build{margin-top:clamp(40px,6vw,72px)}
#landing .l-steps ol{grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(16px,3vw,40px)}
#landing .l-steps li,#landing .feature-cards article{background:none;border:0;border-top:1px solid var(--line);border-radius:0;padding:1.1rem 0 0;transform:none!important}
#landing .l-steps li:hover,#landing .feature-cards article:hover{border-top-color:var(--accent);background:none}
#landing .l-steps p,#landing .feature-cards p{font-size:.92rem;line-height:1.6}
#landing .feature-cards{grid-template-columns:repeat(4,minmax(0,1fr));gap:2rem clamp(16px,3vw,40px)}
#landing .l-block h2{margin-bottom:1.75rem}
#landing .l-features .feature-heading h2{margin-bottom:.6rem}
#landing .l-features .feature-heading{margin-bottom:2.25rem}
#landing .video-comparison,#landing .comparison-empty{min-height:180px}
#landing .l-faq .faq-list{max-width:46rem;gap:0}
#landing .l-faq details{background:none;border:0;border-top:1px solid var(--line);border-radius:0}
#landing .l-faq details:last-child{border-bottom:1px solid var(--line)}
#landing .l-faq summary{padding:1.1rem 0}
#landing .l-faq details p{padding:0 0 1.2rem;max-width:40rem}
@media (max-width:1060px){#landing .feature-cards,#landing .l-steps ol{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:560px){#landing .feature-cards,#landing .l-steps ol{grid-template-columns:1fr}}

/* ---------- "Что можно изменить": one list, one description ---------- */
#landing .l-features{display:block}
#landing .l-features h2{margin-bottom:clamp(1.5rem,3vw,2.5rem)}
#landing .fx{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:clamp(24px,6vw,96px);align-items:start;border-top:1px solid var(--line);padding-top:clamp(1.25rem,3vw,2rem)}
#landing .fx-list{display:grid}
#landing .fx-input{position:absolute;opacity:0;pointer-events:none;width:1px;height:1px}
#landing .fx-list label{display:flex;align-items:center;gap:1rem;padding:.55rem 0;cursor:pointer;font-size:clamp(1.5rem,3.2vw,2.5rem);font-weight:600;letter-spacing:-.035em;line-height:1.15;color:#4a4650;transition:color .25s,translate .3s cubic-bezier(.2,.7,.3,1)}
#landing .fx-list label::before{content:"";width:0;height:2px;background:var(--accent);transition:width .3s cubic-bezier(.2,.7,.3,1);flex:none}
#landing .fx-list label:hover{color:var(--muted)}
#landing .fx-input:checked+label{color:var(--text);translate:0 0}
#landing .fx-input:checked+label::before{width:1.5rem}
#landing .fx-input:focus-visible+label{outline:2px solid var(--accent);outline-offset:4px;border-radius:6px}
#landing .fx-panels{position:sticky;top:110px;min-height:6.5rem}
#landing .fx-p{display:none;margin:0;max-width:26rem;font-size:1.08rem;line-height:1.65;color:var(--muted);animation:rise .4s cubic-bezier(.2,.7,.3,1) both}
#landing .fx:has(#fx1:checked) .fx-p1,#landing .fx:has(#fx2:checked) .fx-p2,#landing .fx:has(#fx3:checked) .fx-p3,
#landing .fx:has(#fx4:checked) .fx-p4,#landing .fx:has(#fx5:checked) .fx-p5,#landing .fx:has(#fx6:checked) .fx-p6{display:block}
#landing .fx-note{margin:1.75rem 0 0;color:var(--muted);font-size:.92rem}
@media (max-width:760px){#landing .fx{grid-template-columns:1fr}#landing .fx-panels{position:static;order:-1;min-height:0}}

#landing .fx-list label{gap:0}#landing .fx-list label::before{margin-right:0;transition:width .3s cubic-bezier(.2,.7,.3,1),margin .3s}#landing .fx-input:checked+label::before{margin-right:1rem}


/* feature previews */
#landing .fx{grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr)}
#landing .fx-p{max-width:none}
#landing .fx-p img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;border-radius:var(--radius);border:1px solid var(--line);background:var(--surface);margin-bottom:1.1rem;animation:fade-in .5s ease both}
#landing .fx-p p{margin:0;max-width:30rem;font-size:1.05rem;line-height:1.65;color:var(--muted)}
#landing .fx-panels{min-height:0}

/* =====================================================================
   Motion polish (review-animations standards): hover only on real pointers,
   no layout-property transitions, shorter UI motion, gentler reduced-motion.
   ===================================================================== */
:root{--ease-out:cubic-bezier(.23,1,.32,1)}
/* label indicator: transform instead of width/margin */
#landing .fx-list label{gap:0;transition:color .2s ease-out}
#landing .fx-list label::before{width:1.5rem;margin-right:1rem;scale:0 1;transform-origin:left;translate:0 0;transition:scale .25s var(--ease-out),margin .25s var(--ease-out);margin-left:-2.5rem}
#landing .fx-input:checked+label::before{scale:1 1;margin-left:0}
#landing .fx-list label span{display:block;transition:translate .25s var(--ease-out)}
#landing .fx-input:checked+label span{translate:0 0}
#landing .fx-list label::before{position:relative}
/* panel swap: quick opacity only (interruptible, no restart-from-offset) */
#landing .fx-p{animation:fade-in .16s ease-out both}
#landing .fx-p img{animation:none}
/* no shimmer sweep, short lift */
#landing .build-chip::before{display:none}
#landing .build-chip{transition:transform .2s var(--ease-out),border-color .2s,background-color .2s!important}
/* cabinet / tabs are high-frequency: no travel, fade only */
.cabinet-content>*:not([hidden]),#documents article:not([hidden]),.account-grid>.panel{animation:fade-in .15s ease-out both}
.account-grid>.panel:nth-child(n){animation-delay:0s}
.panel:hover{transform:none;box-shadow:none}
/* hover motion only for real pointers */
@media (hover:none),(pointer:coarse){
  #landing .build-chip:hover{transform:none!important;box-shadow:none!important}
  .primary:hover{transform:none}
  .brand:hover svg{transform:none}
  #landing .l-steps li:hover,#landing .feature-cards article:hover{transform:none}
  #landing .build-chip[data-egg]:hover .icon-slot>*{animation:none!important;transform:none!important}
}
/* reduced motion: keep fades, drop movement and loops */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-iteration-count:1!important;scroll-behavior:auto!important}
  #landing .l-art::after,#landing .l-logo,#landing .l-pulse{animation:none!important}
  #landing .l-copy>*,#landing .l-build .build-chip,#landing .l-block,.panel,dialog[open]{animation-name:fade-in!important;animation-duration:.2s!important;translate:none!important}
  #landing .build-chip:hover,.primary:hover,.panel:hover{transform:none!important}
}





/* =====================================================================
   Entrances: time-based, one gentle motion for every block.
   boot.js marks <html class="js"> before first paint, reveal.mjs adds .in when a block reaches the screen
   (and only once the router has picked the page), so nothing flashes or jumps. No JS -> everything visible.
   ===================================================================== */
body:not([data-page]) main,body:not([data-page]) .header nav{visibility:hidden;animation:show-failsafe 0s 3s forwards}
@keyframes show-failsafe{to{visibility:visible}}
.header{animation:h-in .4s ease-out backwards}
@keyframes h-in{from{opacity:0}to{opacity:1}}
@keyframes r-in{from{opacity:0;translate:0 16px}to{opacity:1;translate:0 0}}
@keyframes r-failsafe{to{opacity:1;translate:0 0}}
.js :is(#landing .l-kicker,#landing h1,#landing .l-lead,#landing .l-actions,#landing .l-note,#landing .l-art,#landing .l-build .build-chip,#landing .l-block>h2,#landing .video-comparison,#landing .l-steps li,#landing .fx,#landing .fx-note,#landing .faq-list details,#landing .access-banner):not(.in){opacity:0;translate:0 16px;animation:r-failsafe 0s 2.5s forwards}
.js :is(#landing .l-kicker,#landing h1,#landing .l-lead,#landing .l-actions,#landing .l-note,#landing .l-art,#landing .l-build .build-chip,#landing .l-block>h2,#landing .video-comparison,#landing .l-steps li,#landing .fx,#landing .fx-note,#landing .faq-list details,#landing .access-banner).in{animation:r-in .6s cubic-bezier(.22,1,.36,1) var(--d,0ms) backwards}
.js #landing .l-art:not(.in){translate:none}
.js #landing .l-art.in{animation-name:r-fade;animation-duration:.9s}
@keyframes r-fade{from{opacity:0}to{opacity:1}}
@media (prefers-reduced-motion:reduce){
  .header{animation:none}
  .js :is(#landing .l-kicker,#landing h1,#landing .l-lead,#landing .l-actions,#landing .l-note,#landing .l-art,#landing .l-build .build-chip,#landing .l-block>h2,#landing .video-comparison,#landing .l-steps li,#landing .fx,#landing .fx-note,#landing .faq-list details,#landing .access-banner):not(.in){translate:none}
  .js :is(#landing .l-kicker,#landing h1,#landing .l-lead,#landing .l-actions,#landing .l-note,#landing .l-art,#landing .l-build .build-chip,#landing .l-block>h2,#landing .video-comparison,#landing .l-steps li,#landing .fx,#landing .fx-note,#landing .faq-list details,#landing .access-banner).in{animation:r-fade .25s ease-out var(--d,0ms) backwards!important}
}
/* No entrance animation on app pages / header: the page is already held back until routed,
   so extra fades on reload only read as flicker. Landing keeps its reveal. */
.header{animation:none}
.cabinet-content>*:not([hidden]),.account-grid>.panel,#documents article:not([hidden]),
#auth .auth-card,#auth .intro,#verification .panel,#notice:not([hidden]){animation:none}

/* Static routes (landing, documents) need no API: show them immediately; the nav still waits for the router. */
html[data-static] body:not([data-page]) main{visibility:visible;animation:none}
html[data-doc] body:not([data-page]) #landing{display:none!important}
html[data-doc] body:not([data-page]) #documents{display:block!important}
html[data-doc] body:not([data-page]) #documents article{display:none!important}
html[data-doc="system-requirements"] body:not([data-page]) #documents article[data-document="system-requirements"],
html[data-doc="user-agreement"] body:not([data-page]) #documents article[data-document="user-agreement"],
html[data-doc="refund-policy"] body:not([data-page]) #documents article[data-document="refund-policy"],
html[data-doc="privacy"] body:not([data-page]) #documents article[data-document="privacy"]{display:block!important}
